You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now let's say we want to assign attribute of values in two separate assigns:
product=Product.newproduct.values={name: "a product"}product.values.name# => "a product"product.values.description# => nil# now assign descriptionproduct.values={description: "a description"}product.values.description# => "a description"product.values.name# => nil, I don't want name to be nil
Can anyone show me a way how to solve this problem without overriding the elements, considering, there could potentially be deeper nested structures.
The text was updated successfully, but these errors were encountered:
I am having an issue to assign nested attributes avoiding to override previous ones. Here is an example:
Now let's say we want to assign attribute of
values
in two separate assigns:Can anyone show me a way how to solve this problem without overriding the elements, considering, there could potentially be deeper nested structures.
The text was updated successfully, but these errors were encountered: