Using a CSS class statement in a link_to tag


/ Published in: Rails
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <%= link_to 'example', {:action => "index", :id => @item}, :class => "myclass" %>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.