will_paginate problem

I searched in Internet (http://wiki.github.com/mislav/will_paginate/
simple-search and http://railscasts.com/episodes/51), 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


FIELD1, FIELD2 and FIELD3 are table columns and values. They have the
same names.

<%= will_paginate @items, :params => params %>

or a suitable subset of the items from params

:params => params.reject {|k,v| k !~ /FIELD/ }


Rob Biedenharn http://agileconsultingllc.com