Editing Nested Attributes
You can also edit the values in a nested attribute.
If the parent of a group of nested attributes is changed, all dependent children of the parent are reset to null. The user can enter new values as appropriate.
Consider the following attribute values and the example given below the table:
Attribute | Value |
---|---|
Country | United States |
State | California |
City | San Francisco |
District | Castro |
If the user were to change Country to Russia, all the nested attributes are reset to null and the user has the option to repopulate the nested attributes with values that are appropriate for the new parent.
In the multi-parent case, if one parent changes all dependent values are recalculated.