Forum: Ruby on Rails link_to question

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
7bf37697edd246a8cbe32ee05d89a7f3?d=identicon&s=25 Joe (Guest)
on 2007-02-23 04:32
(Received via mailing list)
I'm migrating from 1.1.6 to 1.2.2. I have in my views a lot of:

<%= link_to "My Link", :action =>

which in 1.2.2 the link shows up as


instead of


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_to "My Link", {:action =>
'someAction', :some_attribute=>@some_attribute_value} %>

<%= link_to "My Link", {:action => 'someAction'},
{ :some_attribute=>@some_attribute_value} %>
This topic is locked and can not be replied to.