I'm having a problem when sending a controller params that look like this:
{ id: "1", stuff: {"A" => [], "B" => [], "C" => [], "D" => []} }
The method only sees { id: "1" }
and the entire stuff
parameter is dropped.
This can be changed if there are any values in the arrays. But say there are values in all the arrays except for the key "C"
, they will all be there besides "C"
like:
{ id: "1", stuff: {"A" => ["1"], "B" => ["2", "3"], "D" => ["4"]} }
I'm falling into this problem upgrading from Rails 4.2.x -> 5.0.0
Any suggestions on what is happening here? I've seen a few articles/issues around munging parameters, but I'm not sure if that's the issue because in their example table of how munging works is {person: []}
becomes {person: nil}
, where the person param isn't dropped completely.