Simple GET request question

Wes Gamble wrote:

This seems to work.

<%= form_tag({ :controller => 'artisan_qualifiers', :action =>
'display_quotes' }, :method => 'get', :style => 'display: inline')%>
                     <%= hidden_field_tag(:aqi_id, %>
                     <%= submit_tag('Show Quotes', :style => 'width:
95px;') %>
                   <%= end_form_tag %>

Posted via

You must do it this way, the HTML form will ignore the query string you
pass in the action='' and just send the form to display_quotes. Unless
you include the hidden field (or another type of form field) with the
value of, the aqi_id will never be received.