Displaying 2 results from an estimated 2 matches for "last_activity_tim".
Did you mean:
last_activity_time
2006 Jun 26
0
Update_attributes working, or not? I can''t tell.
I have a basic login system implemented. I''ve recently added a
timestamp field "last_activity_time". During the login process, if I
successfully get back a user object, I do this:
user.update_attribute(:last_activity_time, Time.now())
It appears to be successful given the breadcrumbs I''ve strewn around it,
but nothing gets written out to my table. In development.log I see...
2006 Jun 22
4
Can I peek at all "active sessions"?
My users need to login to run the app I''m building. I''d like to give
them an "Other users currently active:" piece of information. I could
track it myself in the database based on login/logout, but that doesn''t
really count for people just leaving the computer logged in and never
coming back. Does Rails have an API for me to monitor sessions and take
a