📜  编辑设计控制器 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:12.959000             🧑  作者: Mango

代码示例1
# 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