Answers for "generate devise controller rails"

0

devise generate controller

$ rails generate devise:controllers users  # `/controllers/users/`

# routes.rb
devise_for :users, controllers: { registrations: 'users/registrations' }
Posted by: Guest on November-22-2020
0

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
Posted by: Guest on November-29-2020

Browse Popular Code Answers by Language