My two models:
Object embeds_one 'sub_object'
SubObject embeds_many 'sub_sub_objects'
This is my params hash:
{"object"=>
{"sub_object_attributes"=>
{"sub_sub_objects_attributes"=>
{"5369627153657208e5000000"=>{"status"=>"inactive"}}}},
"action"=>"update",
"controller"=>"objects",
"id"=>"535e97a953657252fa170000"}
These are my strong params settings:
params.require(:object).permit(sub_object_attributes: {:sub_sub_objects_attributes=>[:id, :status]})
I'm getting the following error from strong_params:
Unpermitted parameters: 5369627153657208e5000000
How do I allow the sub_sub_objects_attributes
hash which uses the object IDs as keys?