bassman88
bassman88
@ncri I need to be able to call an event after the one below: `$(document).on("fields_added.nested_form_fields", function(){ $('.increment').last().text(''); calc_total(); });`
I tried your suggestion, it still doesn't work but now produces a different error: Couldn't find DeliveryItem without an ID My current workaround is to simply use rails' standard `fields_for`...
`delivery items` belongs_to `delivery`. `delivery` has_many `delivery_items`. `ff.object.delivery_id` outputs the integer that connects `delivery_items` to `delivery`.
The main form object is `@delivery`. I tried doing the "find" workaround but that doesnt work, it suddenly doesn't detect the delivery_id anymore. Here is the whole form, where I...
I tried changing to `form_for` for `delivery` form and `fields_for` for `delivery_items` form. They work, but the moment I change `delivery_items` to `nested_fields_for`, it fails with the same error
I'm currently facing the same problem. It only works on 1 parent model association, the other two, no luck: ``` #works! #does not work #does not work ```