title: Build Fields for Sub Model
body: <p>I have a model called <code>Person</code> that owns <code>Venue</code>. The classes are as followed:</p>
  
  <p>app/models/person.rb</p>
  
  <pre><code>class Person &lt; ActiveRecord::Base
       attr_acessible :height
       has_one :venue
  end
  </code></pre>
  
  <p>app/models/venue.rb</p>
  
  <pre><code>class Venue &lt; ActiveRecord::Base
       attr_acessible :location
  end
  </code></pre>
  
  <p>Now, if I wanted to make a form, it'd be like this if <code>Person</code> didn't <code>has_one</code> <code>Venue</code>:</p>
  
  <pre><code>&lt;%= form_for :person do |f| %&gt;
      &lt;%= f.text_field :height %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>How would I do this if I wanted to create the <code>Venue</code> object for this <code>Person</code> with this form?</p>