Displaying 1 result from an estimated 1 matches for "singup".
Did you mean:
singul
2009 Sep 30
1
2 RESTful controllers for the same resource
Hi everyone I want to have two restful controllers for the same
resource (Users)
One controller (UsersController) is straight in the controllers folder
and is used for singup and so on
Then i need another controller for users which is inside an admin
folder (Admin::UsersController)
In my routes.rb i have
map.resources :users
# Sample resource route within a namespace:
map.namespace :admin do |admin|
admin.resources :users
end
When i access the /admin/...