Here’s my problem.
I have an ‘Item’ model with a date column called “inserted_on” formatted
“yyyy-mm-dd hh:mm:ss:t”. I want to find all records that were inserted
than 30 days ago. How would I say that using the Item.find ( :all …)
method? I don’t fully understand the syntax. I tried
@result = Item.find( :all, :conditions => “inserted_on <
and got a MySQL syntax error.
Thanks in advance for the help.
“Work, work, work…there is no satisfactory alternative.”
— E.Taft Benson