app/controllers/surveys_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 survey_params
      params.require(:survey).permit(
        :user_id,
        :household_id, 
        :latitude, 
        :longitude, 
        :bad_since, 
        :traveled_to,
        :street, 
        :city, 
        :state, 
        :country,
        :went_to_hospital,
        :contact_with_symptom,
        symptom: []
      ) 
    end
def survey_params params . require ( :survey ) . permit ( :user_id , :household_id , :latitude , :longitude , :bad_since , :traveled_to , :street , :city , :state , :country , :went_to_hospital , :contact_with_symptom , symptom : [ ] ) end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .