I don't bother with the date.to_s(:db)
conversion. Working with pure Date
and Datetime
works fine for me.
Game.first(:conditions => ["starts_at <= ?", 3.days.from_now.to_date])
erik
2009-11-30 16:07:28
I don't bother with the date.to_s(:db)
conversion. Working with pure Date
and Datetime
works fine for me.
Game.first(:conditions => ["starts_at <= ?", 3.days.from_now.to_date])