Re: paginate by condition

Mike Garey
2008-03-04T06:28:03Z

check out the will_paginate plugin


On 3/4/08, Dhaval Parikh
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
>
>  hi all
>
>  i want to use paging in my application where..i want to give a
>  condition..like there r 2 things in my db..one is "A" and other
is "B"
>  so i want to list only "A" things and i want to paginate by that
>  condition
>
>  currently i m using find(:all,conditions) in my views..so its not
>  working..
>
>  when i remove the condition from views the pagination is working but its
>  displaying all the records so how to handle that..
>
>  pls let me know
>
>  thanks
>
>  dhaval parikh
>  --
>  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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---