Re: How to I generate a <span> tag

First, thanks for the help!

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

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

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

I’m having a problem generating this HTML is my _header.rhtml.

I know I need to use the link_to and image_tag but I have not been
able to generate the

link_to(image_tag(‘image_file_name’), content_tag(‘span’, ‘link
location’))

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’) %>