Although the question at 'Passing Multiple Parameters in a form_tag' provides some information regarding how one can pass parameters within a form_tag the poster ultimately decided to pursue a different means of achieving said ends (specifically using hidden form fields).
When attempting to use a line of code in a view like:
form_tag(movies_path({:foo = "bar"}), {:id => "ratings_form", :method => :get}) do
it seems as though RoR will not make the value of 'foo' available to the controller; is there another syntax which should be used to pass a parameter as part of the path in such a scenario?
If one wishes to pass the parameter as part of the URL one would think such an approach would be correct (and, in fact, the HTML generated indicates as much since the resultant <form>
tag contains an action="/movies?foo=bar"
statement)... but the controller evaluates params[:foo]
as ''
and not bar
?)