how can i make a select drop down box behave like a link in rails. by this i mean, when somebody selects an option from the list, it posts it in the URL. For example, if somebody selected their name was "Thomas" from the box, in the URL it would display ?name=Thomas. how could i do this?
<%= form_tag(orders_path, :method => "get") do %>
Choose a state
<%= hidden_field_tag :id, "1" %>
<%= select_tag :state, options_for_select(us_states) %>
<%= submit_tag "Go" %>
<% end %>
but when i do it this way i get a bunch of extra information inside the url such as this:
?utf8=✓&id=1&name=Thomas&commit=Go
Thanks in advance