On 7 March 2012 09:57, kingston.s
<jenorishstar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi all,
>
> I used following query
>
> users = User.find(:all, :page => {:size=>100},:conditions =>
> [''created_at between ? and ?'', from_date.to_time,
to_date.to_time] )
I have not come across the use of :page in this way. What do you
think it will do and can you point me to the docs where its use is
documented?
By the way if you are using Rails 3 I would have expected you to be
using the newer techniques for finding, such as User.where(....)
rather than find.
Colin
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.