views:

46

answers:

1

Hey,

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.

+2  A: 

User.logged_in.all ?

zed_0xff
Thanks! Still learning Ruby on Rails, didn't know I could do that.
ben