app/controllers/syndromes_controller.rb
# Only allow a trusted parameter "white list" through.
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .
def syndrome_params
      params.require(:syndrome).permit(
        :description,
        :details,
        :days_period,
        :app_id,
        :threshold_score,
        :symptom => [[ :description, :code, :percentage, :details, :priority, :app_id ]],
        message_attributes: [ :title, :warning_message, :go_to_hospital_message ]
      )
    end
def syndrome_params params . require ( :syndrome ) . permit ( :description , :details , :days_period , :app_id , :threshold_score , :symptom => [ [ :description , :code , :percentage , :details , :priority , :app_id ] ] , message_attributes : [ :title , :warning_message , :go_to_hospital_message ] ) end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .