Rails 4 - Strong Parameters - Nested Objects
I've got a pretty simple question. But haven't found a solution so far. So here's the JSON string I send to the server: { "name" : "abc", "groundtruth" : { "type" : "Point", "coordinates" : [ 2.4, 6 ] } } Using the new permit method, I've got: params.require(:measurement).permit(:name, :groundtruth) This throws no errors, but the created database entry contains null instead of the groundtruth value. If I just set: params.require(:measurement).permit! Everything get's saved as expected, but of course, this kills the security provided by strong parameters. I've found solutions, how to permit