Could I Love Ruby and Rails anymore?
@item.expires_on = Time.now + 3.months
Yeah, I did just write an entry on this one line of Ruby. We’re engaged, Ruby and I, and I didn’t even have to buy a diamond.
Tags: code, love, Ruby, Ruby on Rails, time
@item.expires_on = Time.now + 3.months
Yeah, I did just write an entry on this one line of Ruby. We’re engaged, Ruby and I, and I didn’t even have to buy a diamond.
Tags: code, love, Ruby, Ruby on Rails, time
July 3rd, 2008 at 4:12 am
or you could do this:
@item.expires_on = 3.months.from_now