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
Hi @jhofmeyr! Sorry for the delayed answer. I'm not sure from reading the example provided if I understand correctly the issue, as I don't fully get which params you would expect for it to be working correctly.
I'd be glad to try and help if I'm able to understand a bit more haha!
Hi @rjherrera, thanks for the response! It's been a while since I looked at this, but if I remember correctly the issue is basically that the data collected by the :tags input does not get saved to nested objects. The issue appears to be with the hidden input that gets generated. In particular, I believe these should be name="foo[bars_attributes][0][tags]" - editing the HTML in my browser to this value correctly saves the results.
It may just be that I was just attempting to using the input incorrectly, if so maybe the docs could be updated with the correct usage for nested attributes?
I have been trying to add the tags input to a form with nested attributes, and the hidden input field generated has the incorrect name property.
The select for this looks ok
but the hidden input generated by the above looks like this:
The resulting params are incorrect
Edit: Fixed saving and splitting serialized tags in
Bar
and:name
to:bars_attributes
inpermit_params
The text was updated successfully, but these errors were encountered: