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, quote_input.id) %> <%= submit_tag('Show Quotes', :style => 'width: 95px;') %> <%= end_form_tag %>
-- Posted via http://www.ruby-forum.com/.
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 quote_input.id, the aqi_id will never be received.