I have this problem: user can select some params from a form:

<% form_tag({:action => "view"}, :method => "get", :target =>
"_blank") do %>
....
<% end %>

In method view of controller:

.....
@items = Item.paginate :all, :include => ...., :conditions
=> ....., :page => page, :order => ......, :per_page => 10
.....

In html view:

.....
<%= will_paginate @items %>

Work very good if user select only one param (form send to controller
only one param), but if he select more params the result is ok only
for first page. Next pages lose all params except one (selected by
user and visible in query string). Can you help me?

Thank you
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to