On Jun 18, 6:54 pm, Sean McGilvray <[email protected]> wrote: > How would you implement the last_visited?
As Sean says, it sounds like you're looking for a field that's somewhat different to what updated_at is supposed to represent. To track the visit information, you could add a last_visited datetime to your model. You would add the code: @user.update_attribute(:last_visited, Time::now) to the action that you wanted to record access to. You can also do the same with the updated_at field if you prefer. -Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

