The latter clarification is not needed, since we are dealing with a hash already, so we can just write 

    param_hash = params[:content].inject({}) { |content_type, content_attributes, hash| hash[content_type] = content_attributes[:value] }