Thanks for the help - you're a life saver.  I'll be sure to let our 
programmer know he lost me my Friday night.  ;)

> Change the code to this and it should work for you:
> 
> def find_recent_invoices(number=6)
>    invoices.find(:all, :order => 'posted_on asc',
>                  :conditions => ["invoices.posted_on >= ?",
> number.days.ago])
> end
> 
> 
> -philip

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to