title: Ruby on Rails: How do I do nested forms with a has_one relationship?
body: <pre><code>class PollOption &lt; ActiveRecord::Base
    belongs_to :poll
    has_one :address
  end
  
  
  class Address &lt; ActiveRecord::Base
    belongs_to :user, :poll_options
    apply_addresslogic :fields =&gt; [[:number, :street], :city, [:state, :zip_code]]
  end
  </code></pre>
  
  <p>Those are my relevant models.  Any ideas?
  I kinda just need a good example.</p>