Quick question: I want to grab all rows in a database posted less than
24 hours ago. Here’s what I have in my controller:
now = Time.now
recipe_yesterday = now.yesterday
@recipes = Recipe.find(:all, :conditions => “date_added >
I think there’s a problem because the formatting of the time generated
by Time is different than how time is stored in my database. Is there a
way to reconcile the two?