app/controllers/classrooms_controller.rb
def classroom_params
      params.require(:classroom).permit(:title, :modality_id, :personal, :comment, :duration, :duration_in_hours_formatted, schedules_attributes: [
        :id, :teacher_id, :room_id, :week_day, :start_at, :start_at_formatted, :_destroy
      ])
    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.
Never trust parameters from the scary internet only allow the white list through .
def classroom_params
      params.require(:classroom).permit(:title, :modality_id, :personal, :comment, :duration, :duration_in_hours_formatted, schedules_attributes: [
        :id, :teacher_id, :room_id, :week_day, :start_at, :start_at_formatted, :_destroy
      ])
    end
def classroom_params params . require ( :classroom ) . permit ( :title , :modality_id , :personal , :comment , :duration , :duration_in_hours_formatted , schedules_attributes : [ :id , :teacher_id , :room_id , :week_day , :start_at , :start_at_formatted , :_destroy ] ) 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 .