I'm trying to allow an admin user to edit other users in Devise, but when I try to access an edit page for another user (e.g. /users/1/edit), I get the following message:
Unknown action
Could not find devise mapping for path "/users/1/edit"
The only path that seems to work is /users/edit, which shows the edit page for the current user.
In my routes file I have:
devise_for :users, :controllers => { :registrations => 'users' }
resources :users
Any ideas? Thanks!