Topic: Update Users (as admin) Using Device

I am using device to manage my users and its a bit harder to grasp than what i was expecting.

my routes

new_user_session         GET    /users/sign_in(.:format)       devise/sessions#new
user_session             POST   /users/sign_in(.:format)       devise/sessions#create
destroy_user_session     DELETE /users/sign_out(.:format)      devise/sessions#destroy
user_password            POST   /users/password(.:format)      devise/passwords#create
new_user_password        GET    /users/password/new(.:format)  devise/passwords#new
edit_user_password       GET    /users/password/edit(.:format) devise/passwords#edit
                         PUT    /users/password(.:format)      devise/passwords#update
cancel_user_registration GET    /users/cancel(.:format)        devise/registrations#cancel
user_registration        POST   /users(.:format)               devise/registrations#create
new_user_registration    GET    /users/sign_up(.:format)       devise/registrations#new
edit_user_registration   GET    /users/edit(.:format)          devise/registrations#edit
                         PUT    /users(.:format)               devise/registrations#update
                         DELETE /users(.:format)               devise/registrations#destroy

but i am looking a route that would let me edit a user that is not the one that is loged in and i think it should look like

edit_user GET    /user/:id/edit(.:format)   user#edit

Last edited by moiseszaragoza (2012-06-04 22:25:56)