paginate a table

Rogelio A. RogeX
Fri, 16 Mar 2012 19:13:52 -0000

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??

--
Posted via http://www.ruby-forum.com/.

--
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