I searched in Internet (http://wiki.github.com/mislav/will_paginate/ simple-search and #51 will_paginate - RailsCasts), but I can't solve my problem about pagination. The first page is ok, but when I click the “Next page” or any other page link, I lose the FIELD1, FIELD2, FIELD3 parameter(s). Can you help me? Thank you very much.
class Model < ActiveRecord::Base
...
def self.display(cond, par, page) paginate :all, :include => [:table1, :table2], :conditions => [cond, par].flatten, :page => page, :per_page => 10 end
end