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
http://nasir.wordpress.com/2007/10/31/pagination-in-ruby-on-rails-using-will_paginate-plugin/

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

nas wrote:

steps for doing pagination is specified here
http://nasir.wordpress.com/2007/10/31/pagination-in-ruby-on-rails-using-will_paginate-plugin/

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs