On 19 Dec 2008, at 07:29, Jeff Pritchard wrote:

>
> shoni khan wrote:
>> Jeff,
>>          Visit this page, it will really help you in solving your
>> problem
>> http://my.opera.com/learnror/blog/pagination-with-complex-queries
>> In case of any queries you can reply on that blog or on this form any
>> time.
>>
>> Thanks & Regards,
>> Shahroon Ali Khan
>
> thanks very much. I will check it out.

It is however terrible advice. Fetching all rows into memory and then  
paginating that array could absolutely kill you.

You can merge conditions with the merge_conditions class method on  
ActiveRecord::Base (which is private on 2.1, but not 2.2. You can  
always call it from one of your model's class methods. Or you can just  
build up array based conditions by hand.

Fred
>
>
> jp
> -- 
> 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 [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