Consider the following:
- - -
<% form_for @countryToSearchFor, :url => signed_in_path(:action =>
"show",
:id => 'connected_to_country', :something => 'other'),
:html => {:method => :get} do |f| %>
<%= f.select :country, language_neutral_array_of_countries,
:prompt => 'enter_country' %>
<div>
<%= f.submit shnI18n.literal('search_for_connection') %>
</div>
<% end %>
- - -
The debugger tells me that
signed_in_path(:action => "show",
:id => 'connected_to_country', :something => 'other')
# ==> "/signed_in/connected_to_country?locale=en&something=other"
When the user submits the form both the parameters (locale and
something) have disappeared. This causes more than a small bit of
havoc.
How can I pass parameters via a submit to a controller via params?
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.