Quick Question: Using a CSS class statement in a link_to tag

Hi,
I have a css file with lots of classes. I want different links on my
page (which all use the ‘link_to’ tag) to belong to different classes so
that I can format their font, size, color, etc.

Where or how do I use the css class name in the link_to tag?

Thank you very much

I have a css file with lots of classes. I want different links on my
page (which all use the ‘link_to’ tag) to belong to different classes so
that I can format their font, size, color, etc.

Where or how do I use the css class name in the link_to tag?

<%= link_to ‘example’, {:action => “index”, :id => @item}, :class =>
“myclass” %>

Regards,
Rimantas

http://rimantas.com/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs