Skip to content
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 in Devise::CasSessionsController#destroy #94

Open
rmammina opened this issue Feb 25, 2015 · 1 comment
Open

NoMethodError in Devise::CasSessionsController#destroy #94

rmammina opened this issue Feb 25, 2015 · 1 comment

Comments

@rmammina
Copy link

Trying to logout user but am getting that error. I'm using rails 4.0. Specifically:
NoMethodError (undefined method `destroy_session' for nil:NilClass)

Which is coming from

app/controllers/devise/cas_sessions_controller.rb:27:in `destroy'

@nbudin
Copy link
Owner

nbudin commented Feb 26, 2015

I believe the line your error is coming from may in fact be this: https://github.com/nbudin/devise_cas_authenticatable/blob/master/lib/devise_cas_authenticatable/single_sign_out.rb#L50

It looks like you're attempting to use the Rails cache as your session store while enabling single sign-out. Is that the case? If so, would it be possible for you to try it using a different single-sign-out-supported session store mechanism (such as the ActiveRecord session store)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants