Skip to content

How To: Manage users through a CRUD interface

mastermike14 edited this page May 23, 2011 · 15 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:

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.

Clone this wiki locally