title: f.check_box checked => true for ruby on rails
body: <p>Hi I have the following code on my view:</p>
  
  <pre><code>//I write a loop here to display some workflows saying wkf.each do |i|
  &lt;% if (i write my condition here) %&gt;
    &lt;td style="text-align:left;"&gt;
    &lt;%= f.check_box :i, {:checked=&gt;true}%&gt; 
    &lt;%= f.label(i, i)%&gt;
    &lt;/td&gt;&lt;/tr&gt;
  &lt;% else %&gt;
    &lt;td style="text-align:left;"&gt;
    &lt;%= f.check_box(i)%&gt; 
    &lt;%= f.label(i, i)%&gt;
    &lt;/td&gt;&lt;/tr&gt;
  &lt;%end%&gt;
  </code></pre>
  
  <p>Suppose that there are three workflows 'A', 'B' and 'C' and 'C' meets the if condition, 
  then the parameters being sent are 'A'=>0, 'B'=>0 and 'i'=>'1'.
  I want it to be sent as 'C'=>'1' in the same way as 'A'=>0.</p>
  
  <p>I know that '<code>i' =&gt;'1'</code> is sent because i wrote <code>f.check_box :i, {:checked=&gt;true}</code>% instead of
  <code>&lt;%= f.check_box(i)%&gt;</code>.</p>
  
  <p>Please let me know how to change this so that, the check box is checked by default when the if condition is met and the <code>#{i}</code> would be sent instead of <code>:i</code></p>
  
  <p>Thanks</p>