title: ruby (on rails): how to loop array?
body: <p>I have:</p>
  
  <pre><code>@layout = [:maincol =&gt; ['a'], :sidecol =&gt; []]
  </code></pre>
  
  <p>then I want to loop and get:</p>
  
  <pre><code>&lt;div class="maincol"&gt;&lt;div class="a"&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;div class="sidecol"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>How do I do it?</p>