title: How can I iterate and print over multidimensional arrays in ruby on rails
body: <p>So I have a 2D array like so</p>
  
  <pre><code>$array = [foo,bar,baz], [1,2,3]
  </code></pre>
  
  <p>I need to display these items in a table but cannot figure out how to do it.</p>
  
  <pre><code>$array.each do | x, y |
  puts x
  puts y
  end
  </code></pre>
  
  <p>^^ Doesnt work, surely im missing something very simple.   </p>
  
  <p>Thanks for your help</p>