Ruby on Rails Friday, February 3, 2017

Is it possible to force logout for SOME of the users through Devise.

In my setup, I am using rails 4.1.15 with Devise 1.5.4. Sessions are persisted in db and there is no direct mapping with user ids. Is there a Devise way to logout against some of the users NOT ALL.

I tried resetting password as a proxy which logs out immediately but not always.

user_obj.update_attributes(:password => "some_random_string")

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment