paginate by condition

Dhaval Parikh
2008-03-04T05:48:16Z

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
-~----------~----~----~----~------~----~------~--~---