Closed robmckinnon closed 8 years ago
Our current implementation handle fields_for nested inside of a form_for.
fields_for
form_for
Spec fields_for nested inside fields_for behaviour and implement any changes required.
For example, there are several levels of fields_for nesting in this repo, like this:
= f.fields_for :defendants do |defendant| # ... = f.fields_for :representation_orders do |repo_form|
https://github.com/ministryofjustice/advocate-defence-payments/blob/72e339e0c896059eb04f0ae1ab2244c8fe91c507/app/views/external_users/claims/defendants/_fields.html.haml#L4
https://github.com/ministryofjustice/advocate-defence-payments/blob/72e339e0c896059eb04f0ae1ab2244c8fe91c507/app/views/external_users/claims/defendants/_defendant_fields.html.haml#L25
Our current implementation handle
fields_for
nested inside of aform_for
.Spec
fields_for
nested insidefields_for
behaviour and implement any changes required.