title: A nested form loops through the has_many associated items. How do I display values like id in the f.fields_for ... loop
body: <p>Hard to explain in the title. </p>
  
  <p>I have this a nested form that has <code>category_items</code> and its associated (through has_many) <code>category_item_values</code></p>
  
  <pre><code>&lt;%= form_for([@category, @category_item], url: category_items_update_path) do |f| %&gt;
  
          &lt;%= f.fields_for :category_item_values do |item_value| %&gt;
  
           &lt;%= item_value.label :value %&gt; 
           &lt;%= item_value.text_field :value %&gt;
  
          &lt;% end %&gt;
  
        &lt;%= f.submit %&gt;
  
  &lt;% end %&gt;
  </code></pre>
  
  <p>There are 5 values associated to the item so it displays 5 inputs, one for each category_item_value associated to the given item.</p>
  
  <p>Say in the category_item_values db there is a 'name' column and I want to display the value name above each category_item_value input. How do I do this?</p>
  
  <p>What would I call to access the current categroy_item_value it is looping through and call .name on to display the name above its input</p>
  
  <pre><code>        &lt;%= f.fields_for :category_item_values do |item_value| %&gt;
  
            &lt;%=  SOMETHING.name %&gt;
  
           &lt;%= item_value.label :value %&gt; 
           &lt;%= item_value.text_field :value %&gt;
  
          &lt;% end %&gt;
  </code></pre>