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} %>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---