Skip to content

How To: Manage users through a CRUD interface

rweng edited this page Dec 9, 2010 · 10 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

You can also set
devise_for :users, :path_prefix => ‘d’
resources :users
to isolate the devise logic from your crud user controller.

Clone this wiki locally