I must change a link_to tag color without using a CSS class, how can I do? I've tried something such as
<%= link_to item.description, {}, {:style=>'color:#FFFFFF;', :class => "css_class"} %>
but it doesn't works on ruby 1.9.2 and rails 3.1
How about
<%= link_to item.description, nil, {:style=>'color:#FFFFFF;', :class => "css_class"} %>
...or...
<%= link_to item.description, '#', {:style=>'color:#FFFFFF;', :class => "css_class"} %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With