From eae8e71561cddf402601e16e6da14153fdd47538 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 17 Jul 2015 15:49:58 +0800 Subject: [PATCH] save--->save! --- app/controllers/student_work_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/student_work_controller.rb b/app/controllers/student_work_controller.rb index 71ccee592..4e97c373c 100644 --- a/app/controllers/student_work_controller.rb +++ b/app/controllers/student_work_controller.rb @@ -390,7 +390,7 @@ class StudentWorkController < ApplicationController student_work_test.student_work = stundet_work student_work_test.homework_test = homework_test student_work_test.result = result[:status] - student_work_test.save + student_work_test.save! end end end