title: Checkboxes on Rails
body: <p>What's the correct way of making checkboxes that are related to a certain question in Ruby on Rails? At the moment I have:</p>
  
  <pre><code>&lt;div class="form_row"&gt;
      &lt;label for="features[]"&gt;Features:&lt;/label&gt;
      &lt;br&gt;&lt;%= check_box_tag 'features[]', 'scenarios' %&gt; Scenarios
      &lt;br&gt;&lt;%= check_box_tag 'features[]', 'role_profiles' %&gt; Role profiles
      &lt;br&gt;&lt;%= check_box_tag 'features[]', 'private_messages' %&gt; Private messages
      &lt;br&gt;&lt;%= check_box_tag 'features[]', 'chatrooms' %&gt; Chatrooms
      &lt;br&gt;&lt;%= check_box_tag 'features[]', 'forums' %&gt; Forums
      &lt;br&gt;&lt;%= check_box_tag 'features[]', 'news' %&gt; News
      &lt;br&gt;&lt;%= check_box_tag 'features[]', 'polls' %&gt; Polls
  &lt;/div&gt;
  </code></pre>
  
  <p>I also want to be able to automatically check the previously selected items (if this form was re-loaded). How would I load the params into the default value of these?</p>