title: Rails using child value in a nested form
body: <p>So, I have a nested form where Shelter has many Cats (just using cats as an example to melt the hearts of those eager to help).</p>
  
  <p>So, in my nested form I can use:</p>
  
  <pre><code>&lt;%= f.object.shelter_id %&gt;
  </code></pre>
  
  <p>which gives a value when I run the application. But, and here is the cute cat's but:</p>
  
  <pre><code>&lt;%= f.object.shelter.name %&gt;
  </code></pre>
  
  <p>doesn't work, nor does:</p>
  
  <pre><code>&lt;%= Shelter.find(f.object.shelter_id).name %&gt;
  </code></pre>
  
  <p>Above statement gives an error can't find Shelter where 'id'=</p>
  
  <p>One would think the value would be passed to the query as it is displayed when the app is run? How do I access the associated values in the form? (Its only in Edit, my Show and other controllers and views work fine.)</p>
  
  <p>And yes, the associations are declared in my models.</p>