Re: How to I generate a <span> tag

That did it!

I have been stuck on this for a while and it was starting to drive me
nuts :slight_smile:

Thanks Adam!

----- Original Message ----
From: Adam C. [email protected]
To: [email protected]
Sent: Monday, August 27, 2007 2:11:10 PM
Subject: [Rails] Re: How to I generate a tag

On 8/27/07, [email protected] [email protected] wrote:

First, thanks for the help!

When I try using content_tag(‘span’, 'Home)) it wraps the output in my
with quotes.

Sorry, misunderstood what you wanted. This should do the trick.

<%= link_to(image_tag(image_name.gif) + content_tag(‘span’, ‘lame’),
‘
http://someplace.com’) %>