Re: paginate a table

Jeffrey L. Taylor
Sun, 18 Mar 2012 03:45:42 -0000

Quoting Rogelio A. RogeX
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:
> Hi, I am try paginate a table with plugin WillPaginate, but according to
> me I can only paginate as following:
>
> //make a query,
> data = Model.paginate(:per_page => 5)......
>
> //Show paginate
> <%= WillPaginate @data%
>
> And I need  paginate so:
>
> obj1 = Model1.find().....
> obj2  = Model2.find().....
>
> obj3 = obj1-obj2
>
> <% WillPaginate obj3 %>
>
> Its possible use the plugin for paginate a object in memory??
>

Look at the examples near the bottom of this page:
https://github.com/mislav/will_paginate/wiki

HTH,
  Jeffrey

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at