How do i save a current date/time for a DATETIME column in rails 3

I have a DATETIME column called last_profile_update. I need to update it with a current time. I have the following code:

user =
user.last_profile_update =

but it does not work.


Perhaps a way to simplify that code:

user = User.create(:last_profile_update =>

It could be done with



Figured it was

user =
user.last_profile_update =

It could be done with:

user.last_profile_update =

Need Your Help

Corner case in using lambdas expression in base constructor

c# linq c#-3.0 lambda

In the Framework we are building we need the following pattern: