I’m migrating from 1.1.6 to 1.2.2. I have in my views a lot of:
<%= link_to “My Link”, :action =>
‘someAction’,:some_attribute=>@some_attribute_value%>
which in 1.2.2 the link shows up as
/someAction
instead of
/someAction?some_attribute=5
if @some_attribute_value is equal to 5.
On page 475 of the new book, it looks like the arguments are put into
a hash. I’ve tried to move some_attribute into arguments 2 and 3, and
get the same thing. Why is some_attribute not being passed to the
link?
<%= link_to “My Link”, {:action =>
‘someAction’, :some_attribute=>@some_attribute_value} %>
<%= link_to “My Link”, {:action => ‘someAction’},
{ :some_attribute=>@some_attribute_value} %>