now workie, but user.update_attributes does

In my User model, I had this:

def update_last_login_time
self.last_login =

But last_login was not being set.
When I changed it to this it worked:

self.update_attribute( :last_login, )

Any ideas why?


The call to ‘save’ will return false if the save fails, usually due to
validation problems. Either check the return value of your ‘save’
call, or change it to ‘save!’ which will raise an exception if the
save fails.


-David F.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs