更新时间:2023-02-12 17:09:27
我会说,你的文件名有问题。
I would say, there's something wrong at your filename.
你的文件应该叫用户/ registrations_controller.rb
Your file should be called users/registrations_controller.rb
这对我有用。
设计覆盖注册控制器 - 未初始化的常量 Users::RegistrationsController
设计重写注册控制器 - 未初始化的常量用户::注册控制器