"Who's Online" using Devise in Rails
devise, ruby-on-rails-3
Solution
https://github.com/ctide/devise_lastseenable
You can use this gem that I wrote to store the 'last_seen' timestamp of a user. From there, it's pretty trivial to display the users who were last_seen in the last 5 or 10 minutes.
Problem
Using Devise on Rails, is there some way to list all the users who currently have active sessions i.e. the users that are currently logged in? Ps. I'm looking for a robust solution, not something simplistic like the ones in this question