title: Ruby on Rails checkbox doesn't change value
body: <p>I'm using <strong>'form for'</strong> to send form information and I have a few categories (in my db, they are boolean). To confirm information about categories I use checkbox. But it is not working and I can't understand why.</p>
  
  <pre><code>&lt;%= form.label :lifehacks, "Lifehacks" %&gt;
  &lt;%= form.check_box :lifehacks, :class =&gt; 'checkbox-in-create-post' %&gt;
  </code></pre>
  
  <p>And when I go to console and view created post - category "Lifehacks" is false (what is default value). And it's not changing even if checkbox is checked.</p>
  
  <p>But interesting fact: the same code for other category:</p>
  
  <pre><code>&lt;%= form.label :photos, "Photos" %&gt;
  &lt;%= form.check_box :photos, :class =&gt; 'checkbox-in-create-post' %&gt;
  </code></pre>
  
  <p>if checkbox is checked is changing category "Photos" boolean to true.</p>
  
  <p>If you need some addition information - tell me.</p>
  
  <p>Can you tell me where I've made my mistake?</p>