app/controllers/internships_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 internship_params
    params[:internship].delete :organisation
    params.require(:internship).permit(
      :student_id, :institution_id, :mentor_id, :internship_block_id, :contract_proved, :comments, :exchange
    )
  end
def internship_params params [ :internship ] . delete :organisation params . require ( :internship ) . permit ( :student_id , :institution_id , :mentor_id , :internship_block_id , :contract_proved , :comments , :exchange ) end
Only allow a trusted parameter "white list" through.
Only allow a trusted parameter " white list " through .