title: Does accepts_nested_attributes_for work with belongs_to?
body: <p>I have been getting all kinds of conflicting information regarding this basic question, and the answer is pretty crucial to my current problems. So, very simply, in Rails 3, is it allowed or not allowed to use accepts_nested_attributes_for with a belongs_to relationship?</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    belongs_to :organization
    accepts_nested_attributes_for :organization
  end
  
  class Organization &lt; ActiveRecord::Base
    has_many :users
  end
  </code></pre>
  
  <p>In a view:</p>
  
  <pre><code>= form_for @user do |f|
    f.label :name, "Name"
    f.input :name
  
    = f.fields_for :organization do |o|
      o.label :city, "City"
      o.input :city
  
    f.submit "Submit"
  </code></pre>