-
Notifications
You must be signed in to change notification settings - Fork 5.5k
How To: Manage users through a CRUD interface
sbuhr edited this page May 5, 2011
·
3 revisions
Devise is great because of its flexibility. Performing basic CRUD actions on the User model is actually no different than creating CRUD actions for anything else in Rails.
There are a couple things to remember though:
Remember to remove the :registerable module from the Devise model (in my case it was the User model)
Make sure to put your map.resources :users below the map.devise_for :users route (devise_for :users and resources :users for Rails 3).
You can also set devise_for :users, :path_prefix => ‘d’ resources :users to isolate the devise logic from your crud user controller.