You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
William Mathewson edited this page Aug 15, 2016
·
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:
Make sure to put your resources :users below the devise_for :users route.
Since the registration routes and user managing routes can conflict, you need to change one of them. You can either put devise under a specific prefix:
In your UsersController, you will also need to remove the password key of the params hash if it's blank. If not, Devise will fail to validate. Add something like this to your update method: