title: label_tag and checkbox_tag problem in rails
body: <p>I want my checkboxes to be usable so I usually add label fors to the checkboxes so you can select the text instead of having to "aim" for the checkbox.</p>
  
  <p>Problem is, what if I am using a nested attributes form in rails? I have this code for now:</p>
  
  <pre><code>%ul
    - test_category.test_cases.each do |test_case|
      %li
        = check_box_tag "job_test_cases[]", "#{test_case.id}", test_case.id
        = label_tag "test_case_#{test_case.id}", test_case.name
  </code></pre>
  
  <p>problem with this is that it produces this:</p>
  
  <pre><code>&lt;li&gt;
    &lt;input type="checkbox" value="70" name="job_test_cases[]" id="job_test_cases_" checked="checked"&gt;
    &lt;label for="test_case_70"&gt;Blah blah&lt;/label&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>whereas I wanted it to be like this:</p>
  
  <pre><code>&lt;li&gt;
    &lt;input type="checkbox" value="70" name="test_case_id[]" id="test_case_70" checked="checked"&gt;
    &lt;label for="test_case_70"&gt;Blah BLah blah/label&gt;
  &lt;/li&gt;
  </code></pre>