11155
(-- --)
1
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??
Jeffrey
(Jeffrey)
2
Quoting Rogelio A. RogeX <lists@ruby-forum.com>:
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:
HTH,
Jeffrey