I want to have a /admin section in my application, and have routes within this /admin section like:
http://www.example.com/admin/ (only certain users have acess to this section)
then have controllers in this section like:
/admin/users/{add, new, etc}
What are my options for something like this? (using rails 3)
Do something like this in your routes.rb:
See http://guides.rubyonrails.org/routing.html for more detail.
Then in each admin controller you’ll need a before_filter: