Adding classes to content_tag in Rails

Gombsogattest

New Member
I want to add a class to the \[code\](:i)\[/code\] tag inside the Rails code: \[code\]<td><%= link_to content_tag(:i), item %></td>\[/code\]I want the final code to look like:\[code\]<td><a href="http://stackoverflow.com/items/2"><i class="#"></i></a></td>\[/code\]
 
Back
Top