HTML issues in Rails

Hi,

I have a issue in display HTML in link_to tag.

Issue: Filter

Above HTML tag i want to convert into Rails 3 syntax…but how?

Any one have a answer. Please send me asap.

Thanks.

Hi,

I have a issue in display HTML in link_to tag.

Issue: <a href="login" class="signin"><span>Filter</span></a>

Above HTML tag i want to convert into Rails 3 syntax.....but how?

googling for
rails link_to span
yields numerous hits.

Colin

I solved my issue…

<%= link_to “#{t(‘filter’)}”.html_safe, “”,:class => “signin” %>

I solved my issue...

<%= link_to "<span>#{t('filter')}</span>".html_safe, "",:class => "signin"
%>

I think content_tag would be cleaner and would remove the need for html_safe

Colin