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: Filter
Above HTML tag i want to convert into Rails 3 syntax…but how?
Any one have a answer. Please send me asap.
Thanks.
On 6 July 2012 12:18, harshad [email protected] wrote:
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?
googling for
rails link_to span
yields numerous hits.
Colin
I solved my issue…
<%= link_to “#{t(‘filter’)}”.html_safe, “”,:class =>
“signin”
%>
On 6 July 2012 12:36, harshad [email protected] wrote:
I solved my issue…
<%= link_to “#{t(‘filter’)}”.html_safe, “”,:class => “signin”
%>
I think content_tag would be cleaner and would remove the need for
html_safe
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs