According to the Devise documentation, yes, just like Josh's answer, you have to change the controller. Although you do not have to start from scratch. Take a look at the documentation.
You can create a controller to add settings:
Example: rails generate devise:controllers [scope]
So, you can run the following for the "Your Users" area:
rails generate devise:controllers users
This gives you the controllers in the folder located here: application / controllers / users
Then tell the route file to use this controller. Update the development route as follows:
devise_for :users, controllers: { sessions: "users/sessions" }
And finally, copy all kinds. If you have not studied the views, you need to do it. The controller has changed, so your views will also be required.
source share