From 0d93267327bb3a67380530dde6a4b16b35de775a Mon Sep 17 00:00:00 2001 From: stormand <422171566@qq.com> Date: Thu, 5 Jan 2017 17:04:10 +0800 Subject: [PATCH] t --- app/controllers/courses_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 2f30828..6a83269 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -68,7 +68,7 @@ class CoursesController < ApplicationController else flash={:warning => "导入失败"} end - redirect_to excel_courses_path, flash: flash + render 'index', flash: flash end #-------------------------for students----------------------