title: Rails prints string when each is used in html.erb
body: <p>While it could of course be done neater by putting the code into the controller or something, I can not image why the following is happening:
  assume that <code>@some_table.some_text</code> contains 5 lines.
  putting the following code in my html.erb file:</p>
  
  <pre><code>&lt;% @some_table.some_text.lines.each do |cur_line| %&gt;
      foo
  &lt;% end %&gt;
  </code></pre>
  
  <p>results in 5 <code>foo</code>s followed by all the lines in <code>@some_table.some_text</code>.
  I could imagine this would happen when using the <code>&lt;%= %&gt;</code> but not with <code>&lt;% %&gt;</code>.
  Obviously, I don't want the <code>@some_table.some_text</code> to be shown.</p>
  
  <p>What am I doing wrong here?</p>