title: using an array with fields_for
body: <p>How can I iterate through an array of objects (all the same model) using fields_for ?
  The array contains objects created by the current_user.</p>
  
  <p>I currently have: </p>
  
  <pre><code>&lt;%= f.fields_for :descriptionsbyuser do |description_form| %&gt;
  &lt;p class="fields"&gt;
      &lt;%= description_form.text_area :entry, :rows =&gt; 3 %&gt;
      &lt;%= description_form.link_to_remove "Remove this description" %&gt;
      &lt;%= description_form.hidden_field :user_id, :value =&gt; current_user.id %&gt;
  &lt;/p&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>But I want to replace the :descriptionsbyuser with an array I created in my controller - @descriptionsFromCurrentUser</p>
  
  <p>This is also inside Ryan Bate's "nested_form_for"</p>
  
  <p>Any pointers would be greatly appreciated!</p>
  
  <p>Adam</p>