I had a problem sending controller parameters that look like this:
{ id: "1", stuff: {"A" => [], "B" => [], "C" => [], "D" => []} }
The method sees only { id: "1" } , and the entire stuff parameter is discarded.
This can be changed if there are values ββin the arrays. But say that in all arrays there are values, except for the key "C" , they will all be there, except for "C" , for example:
{ id: "1", stuff: {"A" => ["1"], "B" => ["2", "3"], "D" => ["4"]} }
I get into this problem when upgrading from Rails 4.2.x β 5.0.0 Any suggestions on what's going on here? I saw several articles / problems around brute force options , but I'm not sure that this problem is because in their table of examples of how munging works {person: []} becomes {person: nil} , where the personal parameter is not completely discarded.
arrays ruby-on-rails ruby-on-rails-5 strong-parameters
Luke
source share