Due to the complexity of my model relationships and the flexibility in my form, I require that strong params takes all keys for params[:variants]
.
I'm using the cocoon gem for nested forms, and it generates a random string of digits for every new entry like so:
>> params[:variants]
=> {"1401200245834"=>{"size"=>"M", "price"=>"0.00", "measurements"=>"", "sku"=>""}}
The 1401200245834
is random, so I can't stick it into my permitted params. How would I allow for everything under the :variants
key in my params hash?