title: nested div tags in rails
body: <p>I want to achieve this HTML code in my view</p>
  
  <pre><code>&lt;div class="progress "&gt;
    &lt;div class="progress-bar bgclre3559b" role="progressbar" style="width:80%"&gt;
      &lt;span&gt;&lt;%= top_cat.first %&gt;&lt;/span&gt;
    &lt;/div&gt;
    &lt;div class="progress-bar bgclre3559b" role="progressbar" style="width:15%"&gt;
      &lt;span class="clrfff"&gt;&lt;%= "#{top_cat.last}%" %&gt;&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I tried this one but it only shows the second div inside. Is there a way to concatenate them or how to display properly in rails way. </p>
  
  <pre><code>content_tag :div, class: "progress" do
    content_tag :div, class: "progress-bar bgclre3559b", role: "progressbar", style: "width: 80%" do
      content_tag :span, top_cat.first
    end
    content_tag :div, class: "progress-bar bgclre3559b", role: "progressbar", style: "width: 15%" do
      content_tag :span, "#{top_cat.last}%"
    end
  end
  </code></pre>
  
  <p>Thanks in advance!</p>