title: checkboxes for all elements in a model
body: <p>I want to display a checkbox for all elements in a model called MyModel. Here is what I wrote:</p>
  
  <pre><code>&lt;%=  MyModel.all.each do |c| %&gt;
      &lt;%= check_box_tag(:id) %&gt;
      &lt;%= label_tag(:name, c[:name]) %&gt;&lt;br&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>It does show the checkboxes as expected but at the end, I also get a list of the model content as shown in this <a href="http://i.stack.imgur.com/Nv2hj.png" rel="nofollow">screenshot</a>. </p>
  
  <p>Actually, it seems to be related to <code>&lt;%=  MyModel.all.each do |c| %&gt;</code> because just printing out simple text still prints the whole model table content at the end: </p>
  
  <pre><code>&lt;%=  MyModel.all.each do |c| %&gt;
      toto&lt;br&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>shows this <a href="http://i.stack.imgur.com/Bh7FK.png" rel="nofollow">screenshot</a></p>
  
  <p>Any idea how to get rid of this list at the end?</p>
  
  <p>Thanks!</p>