问题
I've added a last_request_at field to my user table in Ruby on Rails, so now I can call the authlogic method User.logged_in.count and it returns the correct value. But how do I get a list of all logged in users? Thanks for reading.
回答1:
User.logged_in.all
?
来源:https://stackoverflow.com/questions/3083129/how-to-get-a-list-of-online-users-in-authlogic