I working a service that takes in any number of custom attributes and serializes it into a hash.
So it would look something like this:
custom_contacts: {"address_book"=>
[{"contact_list"=>"user_data",
"contacts"=>[{"name"=>"user_data", "number"=>"user_data"},
{"name"=>"user_data", "number"=>"user_data"},
{"name"=>"user_data", "number"=>"user_data"}]}]}
The issue is that I can't quite seem to get this to play nicely with strong params in rails. I've read the documentation here and can't seem to wrap my head around how I would set this up.
You may need one "permit" like blow.