nested_form icon indicating copy to clipboard operation
nested_form copied to clipboard

fields_blueprint_id_for takes root object into account

Open panupan opened this issue 12 years ago • 1 comments

This fixes link_to_add when we have two nested forms on a page with different objects and they have overlapping associations. An example being Issue.attachments and Comment.attachments.

panupan avatar Nov 28 '13 00:11 panupan

@panupan @ryanb @lest I encountered a similar problem and I made this fix: https://github.com/Onumis/nested_form/compare/ryanb:master...master It seems more simple and it relies on the fact that the blueprint is placed inside of the form (as a first child).

If you want I can create a PR on this (note that I've only updated the jQuery javascript).

nunosilva800 avatar Jan 10 '14 00:01 nunosilva800