title: Another rails nested form question
body: <p>Trying to perform a nested object form. The page loads with no errors, but when I send it, no information gets saved to the organization model.</p>
  
  <p>The SQL call says this ..</p>
  
  <pre><code>Parameters: {"commit" =&gt; "save", "action"=&gt;"update","_method"=&gt;"put",  "organization"=&gt;{"likes_snacks"=&gt;"0"}, ..
  </code></pre>
  
  <p>Which is right. The 1 and 0 can be changed properly by flipping on and off the checkbox. But that information is just not saved to the database I guess. Any ideas?</p>
  
  <p>HAML:</p>
  
  <pre><code>- form_for @user do |f|
    = f.label :username
    = f.text_field :username
  .clear
    - fields_for :organization do |org| unless @user.organizations.empty?
      = org.label :likes_snacks, 'Like snacks?'
      = org.check_box :likes_snacks
  = f.submit 'save', {class =&gt; 'button'}
  </code></pre>
  
  <p>CONTROLLER:</p>
  
  <pre><code>def edit
    @user = current_user
    @organization = current_user.organizations.first
  end
  </code></pre>
  
  <p>MODELS:</p>
  
  <p>ORGANIZATION.RB:</p>
  
  <pre><code>has_many  :users, :through =&gt; :organizations_users
  </code></pre>
  
  <p>USER.RB:</p>
  
  <pre><code>has_many  :organizations, :through =&gt; :organizations_users
  </code></pre>