Manage relationship argument question
I do not see an argument type for changes when providing a list of target IDs and I want manage_relationship to just add/remove relationships between existing resources (many-to-many). I will try map with just id populated, but that seems redundant.
2 Replies
in particular the array coming back from a multi-select html element.
I have tried passing an argument that is a list of ids with argument type uud, and both a map and list of maps with the key "id" and the value of the id with argument type map. Each returns invalid value.
Is there a unit test that shows how to update/create a meny to meny with manage_relationship?
type: :append
and type: :remove
sound like what you want, and should support just a list of ids
If you get an invalid value return then it’s more likely that either the argument type, or an involved attribute type is not the type that you think it is