Is it possible to generate the url for the form submit based off of the values in the form? I am trying to create a search form that asks for the make and model
<% form_tag make_model_search_path(:client_id => @client.id) do %>
<%= select_tag :make, options_for_select(make_list) %>
<%= select_tag :model, options_for_select(model_list) %>
<%= submit_tag "Search" %>
<% end %>
The route I want to use is the following to display the results
map.make_model_search "client/:client_id/tags/search/make/:make/model/:model", :controller => "tags", :action => "make_model_search", :method => :get
But since the URL is generated before any parameters are sent I do not know how to do this
The reason I want it to be done this way is because I need to add pagination to this eventually by appending "page/:page" to this route.
If this is not possible. I also do not understand why the params are not in the the url as
"?client_id=ID&make=MAKE&model=MODEL"
It it my understanding that this will allow me to do the same thing
Thank YOU!