Re: how to paginate an model array object

Vidya Ramachandren
Wed, 19 Dec 2007 07:33:25 -0000

http://wiki.rubyonrails.org/rails/pages/PaginationHelper
http://wiki.rubyonrails.org/rails/pages/HowtoPagination
Also check out for will_paginate plugin

Pokkai Dokkai wrote:
> @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 ...