edit devise controllers code example
Example: edit devise controllers
# in terminal
rails g devise:controllers users # generate all controllers
# routes.rb
devise_for :users, controllers: { registrations: 'users/registrations' }
#the registration will be done in the RegistrationsController