« Return to Thread: Only One Controller + Urgent

Re: Only One Controller + Urgent

by sami-23 :: Rate this Message:

Reply to Author | View in Thread


quite interesting problem
   I think best way to add :before_filter to your controllers

routing will restrict even the admin level user to access the
controllers.

if you want to restrict all users including the admin then you have to
think how
can you access that controller from the internal system (because if
you are
using restful routing and have not define anything for that controller
then you will not be able to
access those controller. in that case you have to rethink about the
design i mean whether you really need those controllers)

if this one is the authorization problem then :before_filter is the
best solution






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@...
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: Only One Controller + Urgent