On 1/25/2011 10:09 AM, Piotroslav wrote:
I used paper_clip.
It is important to store last objects before change was made.

I need to figure out how to log all login/out times for different
users. Any Ideas?

You can get the login and logout times, but you may not be able to tell the users that just abandoned a session by turning off their browser.

Put the following in users_controller.rb, replace the mailer calls with your logging code:

##########################################################
# Send login and logout e-mails to webmaster
##########################################################
  def login
    hobo_login do
      LoginLogout.deliver_login( self.current_user )
#      LoginLogout.login.deliver( self.current_user )
    end
  end

  def logout
    LoginLogout.deliver_logout( self.current_user )
#    LoginLogout.logout.deliver( self.current_user )
    hobo_logout
  end

Don Z.

--
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to