Rails and the <span> tag

Posted by Zachary on Stack Overflow See other posts from Stack Overflow or by Zachary
Published on 2010-04-21T18:10:45Z Indexed on 2010/04/21 18:13 UTC
Read the original article Hit count: 191

Filed under:
|
|

I'm fairly new to Ruby on Rails, and I'm attempting to create some fancy CSS buttons using the "sliding doors" technique. I have it almost working, but I feel like there has to be a better way to handle the tags for a link.

The way I'm currently doing it:

 <%= link_to '<span>New car</span>', {:action => "new"}, :class=>"button" %> 

This isn't terrible, per se, but I would like to know if this is the best way to handle span tags is RoR.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about html