devise overriding registrations controller - uninitialized constant Users::RegistrationsController

后端 未结 6 1967
时光说笑
时光说笑 2021-01-04 04:34

I\'m trying to override some the functionality of the default devise registrations controller so that only certain users can create accounts for others. So in a file called

6条回答
  •  半阙折子戏
    2021-01-04 05:20

    If you has been generate the views Move view files

    I assume you already use rails generate devise:views generated devise views. Move views/devise/registrations folder to views/users , I think you also you should change the _path in the forms

提交回复
热议问题