Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: alanruth
Actually I got that wrong... Here is the code that worked for me. Again the link I put in the initial response was where I got this code...
params.require(:product).permit(:name, :product_type_id).tap do |whitelisted|
whitelisted[:properties] = params[:product][:properties]
From my understanding you have to use tap and then whitelist the dynamic fields. Here is the code I used in my application.
params.require(:product_type).permit(:name).tap do |whitelisted|
whitelisted[:product_fields] = params[:product_type][:product_fields]
Here is the resource I used to figure this out.
I hope that helps.