jquery-nested_attributes
jquery-nested_attributes copied to clipboard
jQuery plugin that makes it easy to dynamically add and remove records when using ActiveRecord's nested attributes
Are you guys keen on turning this into a gem? Would makes it easier to promote as a substitute to nested_form. I am willing to do it :D
I believe when it finds the relevant inputs for the fields it uses this selector: https://github.com/patbenatar/jquery-nested_attributes/blob/master/jquery.nested_attributes.coffee#L33 So when it tries to figure out the collection name it can't because the...
Should have an option to automatically remove newly added items on submit if nothing has been changed in them.