Ruby on Rails Tuesday, August 13, 2013

call like this  content_tag(:h1,raw("Arrange"+(content_tag(:span,"Demo"))))

=> "<h1>Arrange<span>Demo</span></h1>"

kingston.s

On Tuesday, August 13, 2013 5:20:18 PM UTC+5:30, kanna wrote:
Hi

i tried content_tag inside content_tag bu its not working

<%= content_tag(:h1,"Arrange"+content_tag(:span,"Demo"))%>

i want like this type

<h1>Arrange <span>Demo</span></h1>

plz help.

bye

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/44e34ea8-752a-4cad-b506-cc8b6591aa7a%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment