Forum: Ruby on Rails render_component and private access...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ray M. (Guest)
on 2006-01-24 10:11
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.
Bob S. (Guest)
on 2006-01-24 10:20
(Received via mailing list)
Maybe you can re-route it?

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


Bob S.
This topic is locked and can not be replied to.