How to paginate an array of fetched results

Hi all,

I have implemented the searching and the results of searching are coming
in an array @products << lineitems. I want to paginate this array.

Any help would be greatly appreciated.
Thanks,
Ruchita.

Use will_paginate plugin, look for it in railscasts.com.

On Dec 24, 2007 1:43 AM, Ruchita S.
[email protected]
wrote:

Hi all,

I have implemented the searching and the results of searching are coming
in an array @products << lineitems. I want to paginate this array.


http://www.rubyplus.org/
Free Ruby Screencasts

steps for doing pagination is specified here

On Dec 24, 9:43 am, Ruchita S. [email protected]

nas wrote:

steps for doing pagination is specified here
Pagination in Ruby On Rails using will_paginate plugin – Nasir Jamal

On Dec 24, 9:43 am, Ruchita S. [email protected]

Hello,

I need to paginate an array…
example @products << @lineitems.
I don’t have any table of products, it is just an array of data.
That’s why i don’t know what syntax to be used.