I think you'd do something like this:

Topics.find(:all, :conditions => ["expiration_date < ?", Time.now + 1.hour])

See
http://www.railsbrain.com/api/rails-2.2.2/doc/index.html?a=M001891&name=findfor
more examples.

Regards,
Craig


-- 
Craig Demyanovich
Mutually Human Software
http://mutuallyhuman.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 [email protected]
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