solvable
I just created a controller manually and inherited it from Devise . For example:
class Users::RegistrationsController < Devise::RegistrationsController
This controller must be located in the application / controllers / users / registrations_controller.rb. If you have other options, just log in using applications / controllers / scope / registrations_controller.rb. For example, if you have an administration area, it will be applications / controllers / admins / registrations_controller.rb.
Best.
UPDATE
Following the comment from blushrt, I forgot to mention that it is important to modify config / routes.rb so that make Devise uses the created controller for a specific resource. For example, for users, you should enter your config / routes.rb:
devise_for :users, controllers: { registrations: "users/registrations" }
What is it. Best.
Luis crespo
source share