content_tag (modified): Part 2 (the view)


/ Published in: Rails
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <%= content_tag 'div', :class => 'products' do
  2. content_tag 'ul', :class => 'list' do
  3. content_tag 'li', :class => 'item1'
  4. content_tag 'li', :class => 'item1'
  5. end
  6. end
  7. %>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.