rails generate devise control code example
Example: devise generate controller
$ rails generate devise:controllers users # `/controllers/users/`
# routes.rb
devise_for :users, controllers: { registrations: 'users/registrations' }
$ rails generate devise:controllers users # `/controllers/users/`
# routes.rb
devise_for :users, controllers: { registrations: 'users/registrations' }