app/controllers/candidates_controller.rb
# Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .
def candidate_params
    params.require(:candidate)
      .permit(%i(first_name last_name gender date_of_birth place_of_birth
                 date notes education_subject year police_certificate internships cancel_date
                 internships_proved education_contract_sent education_contract_received
                 internship_contract_sent internship_contract_received cancel_reason status
                 debit_mandate contract_notes career_changer rank) +
                [
                  address: %i(street zip city),
                  contact: %i(email phone mobile),
                  school_graduate:     %i(graduate proved),
                  profession_graduate: %i(graduate proved comments),
                  interview:           %i(date time place comments invited answer result reason),
                ])
  end
def candidate_params params . require ( :candidate ) . permit ( %i( first_name last_name gender date_of_birth place_of_birth date notes education_subject year police_certificate internships cancel_date internships_proved education_contract_sent education_contract_received internship_contract_sent internship_contract_received cancel_reason status debit_mandate contract_notes career_changer rank ) + [ address : %i( street zip city ) , contact : %i( email phone mobile ) , school_graduate : %i( graduate proved ) , profession_graduate : %i( graduate proved comments ) , interview : %i( date time place comments invited answer result reason ) , ] ) end
Never trust parameters from the scary internet, only allow the white list through.
Never trust parameters from the scary internet only allow the white list through .