-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Getting undefined method make_response!
for overridden Devise controller class
#1158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
is that your code? we don't have any |
No. It's just a fresh Rails 5.2 app. I certainly haven't written any code aside from the things needed to integrate devise_token_auth and override one of the controllers. |
The registrations controller could be inheriting from the wrong controller, also, |
@terenceponce this happened because you're trying to open the One way to solve your problem would be to create an initializer and put the following in it: Devise::RegistrationsController.class_eval do
include DeviseTokenAuth::Concerns::SetUserByToken
def create
super
end
end |
I had this error and when my code was like this:
... then I made it like this and it worked:
|
I know that it is old, but you can just make a little workaround to trigger the autoloading.
|
When posting issues, please include the following information to speed up the troubleshooting process:
Environmental Info:
--api
)I made a fresh Rails app and tried using this gem. I was hoping to override the controllers so I can use this gem with Versionist and apipie-rails. Here's a test that I made just to make sure that the gem works as expected out of the box:
This test works if I just use the default route that devise_token_auth comes with. However, if I try to use my override controller instead, it produces this error:
I tried searching everywhere for the solution, but I found nothing so I'm hoping someone can help me out on this.
The text was updated successfully, but these errors were encountered: