Paginate by condition

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

check out the will_paginate plugin