In my rails application, I use a program to register a user. Now, in addition to registering users, administrators must create, edit and delete the user in the backend. I had a problem creating new users through this admin server.
When I call the new UsersController # new action in my browser, it opens the user input form I created. When I click the submit button, Devise :: RegistrationsController # create is called, but it should call the MyController # create action.
How can I make a call to UsersController # create when using user creation in the admin backend and call Devise :: RegistrationsController # create when the user uses registration?
source
share