On Tue, Jun 2, 2009 at 10:56 PM, Timur Abishev <[email protected]> wrote:
>
> One more question:
> If I have created_at field in Item and want to get items in created_at
> order how it do?

Item.all(:created_at => moment_of_interest) should work.

However, for time properties exact match is less often used, to say
"not later than X" you'd use

Item.all(:created_at.lte => moment_of_interest)

where lte stands for less than or equal.
-- 
MK

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to