title: Formtastic. How to create a form for multiple objects of the same model?
body: <p>I have a subject model with two fields - "name" and "level". I want to be able to visit "/subjects#new" and add 10 subjects objects at once. How can I do this in formtastic.</p>
  
  <p>In regular forms I would do this:</p>
  
  <pre><code>&lt;% @subjects.each do |s| %&gt; 
     &lt;% fields_for "subject[#{s.id}]", s do |f|%&gt;                                                                  
       &lt;%= f.name%&gt;
       &lt;%= f.level %&gt;
     &lt;% end %&gt; 
  &lt;% end %&gt;   
  </code></pre>