title: Checking checkboxes with Capybara
body: <p>Using Capybara I cannot for the life of me select a checkbox on my form.</p>
  
  <p>In my request spec I've tried:</p>
  
  <pre><code>check("First Name")
  page.check("First Name")
  page.check("pickem_option_ids_10")
  find(:css, "#pickem_option_ids_11[value='11']").set(true)
  find(:css, "#pickem_option_ids_11").set(true)
  </code></pre>
  
  <p>Snippet from my form:</p>
  
  <pre><code>&lt;div class="control-group check_boxes optional"&gt;
     &lt;label class="check_boxes optional control-label"&gt;Options:&lt;/label&gt;
     &lt;div class="controls"&gt;
      &lt;label class="checkbox"&gt;
       &lt;input class="check_boxes optional" id="pickem_option_ids_10" name="pickem[option_ids][]" type="checkbox" value="10" /&gt;First Name
      &lt;/label&gt;
      &lt;label class="checkbox"&gt;
       &lt;input class="check_boxes optional" id="pickem_option_ids_11" name="pickem[option_ids][]" type="checkbox" value="11" /&gt;Middle Name
      &lt;/label&gt;
     &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I got some of the find() ideas from <a href="https://stackoverflow.com/questions/8297624/how-to-check-a-checkbox-in-capybara">this SO thread</a>.</p>
  
  <p>I've had some success in other specs where I have a single checkbox with a label of Active and I just say <code>check("Active")</code>.</p>