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? 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
On 6 July 2012 12:18, harshad <harshad-neH//8vQLKEFoECaAgFIynS5uNuOjpZe@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en-US.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
I solved my issue... <%= link_to "<span>#{t(''filter'')}</span>".html_safe, "",:class => "signin" %> On Friday, July 6, 2012 4:56:24 PM UTC+5:30, Colin Law wrote:> > On 6 July 2012 12:18, harshad <harshad-neH//8vQLKEFoECaAgFIynS5uNuOjpZe@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group at > > http://groups.google.com/group/rubyonrails-talk?hl=en-US. >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
On 6 July 2012 12:36, harshad <harshad-neH//8vQLKEFoECaAgFIynS5uNuOjpZe@public.gmane.org> 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 <harshad-neH//8vQLKEFoECaAgFIynS5uNuOjpZe@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To unsubscribe from this group, send email to >> > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > For more options, visit this group at >> > http://groups.google.com/group/rubyonrails-talk?hl=en-US. > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en-US.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.