If I have this: "<form action="/artisan_qualifiers/display_quotes?aqi_id=596" method="get" style="display: inline;"><input name="commit" style="width: 95px" type="submit" value="Show Quotes" /></form>" and I submit this form, should I not expect the parameter (aqi_id = 596) to make it to the server? When I see the request in my mongrel log, I see: "GET /artisan_qualifiers/display_quotes HTTP/1.1" Is this expected or not? Wes -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I could have sworn this worked before. However, I simply moved the param to a hidden field in the form and all is well. Is it not valid to have query params in a form action attribute? WG -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
No it''s not well. What am I doing wrong? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---