On 6 July 2012 12:36, harshad <
har...@spaceotechnologies.com> wrote:
> 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
>
>
>
> On Friday, July 6, 2012 4:56:24 PM UTC+5:30, Colin Law wrote:
>>
>> On 6 July 2012 12:18, harshad <
har...@spaceotechnologies.com> wrote:
>> > 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
>>
>> >
>> > Any one have a answer. Please send me asap.
>> >
>> > Thanks.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Ruby on Rails: Talk" group.
>> > To view this discussion on the web visit
>> >
https://groups.google.com/d/msg/rubyonrails-talk/-/yf5aqXbXVyQJ.
>> > To post to this group, send email to
rubyonra...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> >
rubyonrails-ta...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/rubyonrails-talk/-/cqkNP1lzvjcJ.
>
> To post to this group, send email to
rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
>
rubyonrails-ta...@googlegroups.com.