how to paginate an model array object

Pokkai Dokkai
Wed, 19 Dec 2007 07:07:27 -0000

@models=Model.find_all
@model_pages,@models=paginate @models,:per_page=>10

ofcourse above is wrong

is there any way to do like that in rails ?

actually i have created my own Class method in Model.rb .
From that i can get array of model object.

i want to paginate that


any idea ...