Create, update, and destroy actions in a UserController that uses Devise to register?

Do I need to perform an action new, create, edit, updateand destroyon the controller, the corresponding model which uses Devise module :registerable?

In other words, should I support the CRUD interface, although Devise controls the registration process for me?

+3
source share
1 answer

If you want to control your own User(or any other way that the Devise model will invoke) through the CRUD interface, you will need to have these actions. If I am mistaken, if you control your own Userusing the CRUD installation, you need to remove it :registerablefrom the model.

If you need / need a CRUD interface for your Users, you can delete the CRUD actions (Devise will work fine without the CRUD interface or CRUD actions in your controller).

+5
source

Source: https://habr.com/ru/post/1785680/


All Articles