1 2 3 4 |
<% form_tag( '/search', :method => 'get' ) do %> <%= text_field_tag :search_str %> <%= submit_tag "Search" %> <% end %> |
Let's say we don't need the commit=Search parameter. Fortunately, it's really easy to get rid of it. Default name of submit_tag's parameter is "commit" and it's set by :name key. If you set it to nil, the parameter won't get pass. So just change the submit_tag helper to this:
<%= submit_tag "Search", :name => nil %> |