I have a rails application that stores a serialized hash in a field called properties.
properties
The hashes keys are unknown though, so I don\'t know of a way to
None of these answers worked for me (using Rails 4.2.4), so I figured out the following workaround:
def product_params properties_keys = params[:product][:properties].keys params.require(:product).permit(:title, :description, properties: properties_keys) end
Hope that helps someone.