From 962492f81d1dfac5f00afb27f245b46cbd6df596 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Wed, 25 Sep 2019 10:42:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/welcome_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index e5a168f6..d0dc51e0 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -92,7 +92,7 @@ class WelcomeController < ApplicationController new_stage_shixun = LocalStageShixun.new new_stage_shixun.attributes = stage_shixun.attributes.dup.except("id") new_stage_shixun.local_subject_id = local_subject.id - new_stage_shixun.local_subject_id = new_stage.id + new_stage_shixun.local_stage_id = new_stage.id new_stage_shixun.save! end end