title: Iterating results from execute results in Rails
body: <p>I'm trying to find a way to loop through each of the results from using the sql execute. I'm using the 'for' loop but it bunches all the values into one cell. I need to separate each value</p>
  
  <p>So my table would have:
  row1 = 1, 2, 3
  row2 = a, b, c</p>
  
  <p>Currently using this returns the values into one table cell:</p>
  
  <pre><code>&lt;% for values in @results %&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;%= values %&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>This is how it shows</p>
  
  <pre><code>&lt;tr&gt;
    &lt;td&gt;123&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;abc&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>How do I make it like this:</p>
  
  <pre><code>&lt;tr&gt;
    &lt;td&gt;1&lt;/td&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;3&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;a&lt;/td&gt;&lt;td&gt;b&lt;/td&gt;&lt;td&gt;c&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>