We Recommend

The Rails Way The Rails Way
Now, for the first time, there’s a comprehensive, authoritative guide to building production-quality software with Rails. Pioneering Rails developer Obie Fernandez and a team of experts illuminate the entire Rails API, along with the Ruby idioms, design approaches, libraries, and plug-ins that make Rails so valuable.


Posted By

tonic on 08/19/08


Tagged

css class link rails linkto


Versions (?)


Using a CSS class statement in a link_to tag


Published in: Rails 


URL: http://lists.rubyonrails.org/pipermail/rails/2006-April/031420.html

  1. <%= link_to 'example', {:action => "index", :id => @item}, :class => "myclass" %>

Report this snippet 

You need to login to post a comment.