Lets say you have a search box with 3 types of search based on a drop down. If you use will_paginate by default clicks on the page links will lose the perspective of which drop down was chosen for the search. To fix this, you can pass a params hash to will_paginate view helper to pass along this context. For example:
If you had a search box for people , you can pass along the param from the search type like this:
<%= will_paginate @people :params => { :search_type => params[:search_type] } %>
Comments