[Rails] render_component and private access...

Bob Silva
Tue, 24 Jan 2006 08:19:14 -0000

Maybe you can re-route it?

map.connect ''/cont/action'', :controller =>
''cont'', :action => ''other_action''


Bob Silva


> -----Original Message-----
> From: rails-bounces@lists.rubyonrails.org [mailto:rails-
> bounces@lists.rubyonrails.org] On Behalf Of Ray Morgan
> Sent: Tuesday, January 24, 2006 12:11 AM
> To: rails@lists.rubyonrails.org
> Subject: [Rails] render_component and private access...
>
> I was wondering if rails had any means of restricting access to an
> action in a controller (like they can''t type in
url.com/cont/action,
> that would throw an error).  The thing is I would like to be able to
> access this method/action through a call to render_component, so
> therefore, I don''t think private methods will work.
>
> So basically I am looking for something that cannot be directly accessed
> by the browser, but can be accessed through render_component.
>
> Thank you for all of your help.
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails