title: Three level nested forms in rails using accepts_nested_attributes_for
body: <p>I've been trying to implement a dynamic multi-model form with <code>accepts_nested_attributes_for</code> in my rails application.  I've been following Eloy Duran's <a href="http://github.com/alloy/complex-form-examples/tree/master" rel="nofollow noreferrer">complex-forms example</a> that shows a 2 level implementation, but I've been trying to expand this to 3 levels.  Is there support with <code>accepts_nested_attributes_for</code> for a 3 level form?  Can anyone show me how to expand the example app? </p>
  
  <p>I've got the javascript partially working (doesn't always work for some reason) for the 3rd level, but I can't save the 3rd level object(s).  The param name it is passing for each attribute is:</p>
  
  <pre><code> greatgrandparent[grandparent_attributes][0][parent_attributes][0][object_attributes][1249277008434][attribute] 
  </code></pre>
  
  <p>Where greatgrandparent is the object the form is for, grandparent is the first level, parent is the second level, and object is the 3rd level (the one I'm trying to save).</p>
  
  <p>Thanks, I appreciate any pointers.</p>