Displaying 2 results from an estimated 2 matches for "edit_admin_user".
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
2012 Oct 23
0
route problem
...rs(.:format) admin/users#index
POST
/admin/users(.:format) admin/users#create
new_admin_user GET
/admin/users/new(.:format) admin/users#new
edit_admin_user GET
/admin/users/:id/edit(.:format) admin/users#edit
admin_user GET
/admin/users/:id(.:format) admin/users#show
PUT
/admin/users/:id(.:format) admin/users...