-
Notifications
You must be signed in to change notification settings - Fork 386
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
NoMethodError: undefined method `destroy_session' for nil:NilClass #464
Comments
Im using Puma + Rails 4 . Or is it just me trying to see something that isn't there? |
I'm using Sorcery with Rails 4 and Puma too but I didn't get such errors yet. Maybe I just have too small number of visitors there. It has very similar affects like those Devise issues you linked. I will try to sort it out. |
We were also experiencing this issue. To reproduce it we go to our login page, delete cookies, and submit the login form. The following change in our controller seems to have solved the problem:
But I guess that sorcery should also work the the Rails 4 default, which is |
+1 |
1 similar comment
+1 |
Sorry for delay, I will take some on this week to work on this issue. |
I couldn't reproduce it on the empty app with Rails 4 and Puma.
All i've got here was the ActionController::InvalidAuthenticityToken. Here is the app: https://github.com/kirs/demo-sorcery-puma Am I doing something wrong? |
Thanks a lot for looking into this @kirs The issue appears only if you use I altered your test app accordingly: kirs/demo-sorcery-puma#1 I hope this helps in figuring out how to handle the issue. |
After looking into this a little deeper I would think that this is actually an issue in Rails' In the |
The underlying issue was fixed in Rails |
fix for #464 can be removed when Rails 4.1 is out
I can confirm, that this fixed the issue in our app. Thanks. |
Great! I've merged it into master. New release will be later this week. |
Was it released? If not, may you release it? If yes, may you update README? |
Sorry for delay and thanks for pinging me. I've just released 0.8.5, which is fully Rails 4 -ready. |
Im seeing sometimes that a user gets this error when he tries to login.
Any idea why? or how to fix it?
The text was updated successfully, but these errors were encountered: