hi

I tried

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

its coming fine.

thanks for everyone .



*
Follow me on Twitter <https://twitter.com/vtrkanna>

*
*Follow me on  LinkedIn <http://www.linkedin.com/in/vtrkanna>

*
*Follow me on Facebook <https://www.facebook.com/kannavrk>
*
*
kanna(9742665400)*...........


On Wed, Aug 14, 2013 at 2:57 AM, masta Blasta <[email protected]> wrote:

> kanna wrote in post #1118570:
> > 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>
> >
> >
> >More readably (IMO):
> >
> > <%= content_tag :h1 do %>
> >   Arrange <%= content_tag :span, 'Demo' %>
> > <% end %>
>
> What's wrong with just using standard HTML:
>
> <h1>Arrange <span>Demo</span></h1>
>
> Not sure how a bunch of nested content_tag() are 'more readable' than
> that.
>
> Personally i hate the content_tag method. It just obfuscates your DOM.
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/a4281ea275f17d674b48c94267db2660%40ruby-forum.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAPtiWRDNE8PR79e-5V%2BsbbYJX%2BQ8o9qfbSOTA8_s5u%2BvW414WA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to