andrewajo
andrewajo
Everything seems to be working fine for me until I put a fields_for inside of another fields_for. If I click link_to_add on the inner fields_for it adds it to all...
Sorry I should have been more specific. It is not an issue of having a unique node name - I have created a specific div with a unique class. Here...
Let me know if this is ok: git clone git://gist.github.com/1173694.git gist-1173694
Think I found a fix: ``` insert_node = $(this).closest("form").find(insert_node); child = $(this).closest(".fields").index(); ``` // var field = $(content).insertBefore(this); switch(insert_position){ case 'before': var field = $(content).insertBefore(insert_node[child]); break; case 'after': $(content).insertAfter(insert_node[child]); break;...
Will take a look at it and let you know - haven't had a chance to give it a thorough test...
I have switched to this and it works with simple nesting and without the node option: ``` if (insert_node != this) { insert_node = $(this).closest("form").find(insert_node); child = $(this).closest(".fields").index(); insert_node =...
having a similar problem with a very specific accounting document...