From 97156f0de1909530d470465c5963d39aff7cf482 Mon Sep 17 00:00:00 2001 From: z9hang Date: Tue, 23 Sep 2014 14:46:19 +0800 Subject: [PATCH] =?UTF-8?q?enable=5Fmodule=E8=A1=A8=E8=A2=AB=E8=BF=98?= =?UTF-8?q?=E5=8E=9F=E9=97=AE=E9=A2=98=EF=BC=8C=E5=8E=9F=E5=9B=A0=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E6=96=B0=E5=BB=BA=E5=A4=B1=E8=B4=A5=E6=97=B6=EF=BC=8C?= =?UTF-8?q?@course=E5=AF=B9=E8=B1=A1=E6=9C=AA=E4=BF=9D=E5=AD=98=E6=95=85?= =?UTF-8?q?=E5=85=B6id=E4=B8=BAnull=EF=BC=8C=E5=8D=B4=E5=81=9A=E4=BA=86?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=93=8D=E4=BD=9C=E7=BA=A7=E8=81=94=E5=88=A0?= =?UTF-8?q?=E9=99=A4enable=5Fmodule=E8=A1=A8=E6=97=B6sql=E8=AF=AD=E5=8F=A5?= =?UTF-8?q?=E5=B0=B1=E6=88=90=E4=BA=86DELETE=20FROM=20`enabled=5Fmodules`?= =?UTF-8?q?=20WHERE=20`enabled=5Fmodules`.`course=5Fid`=20IS=20NULL=20?= =?UTF-8?q?=E8=80=8C=E8=BF=99=E5=88=9A=E5=A5=BD=E5=AF=B9=E5=BA=94=E4=BA=86?= =?UTF-8?q?=E6=89=80=E6=9C=89=E9=A1=B9=E7=9B=AE=E6=95=B0=E6=8D=AE=E3=80=82?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8A=9E=E6=B3=95=EF=BC=9A=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=AF=BE=E7=A8=8B=E8=AF=AD=E5=8F=A5=EF=BC=8C?= =?UTF-8?q?=E6=9C=AA=E4=BF=9D=E5=AD=98=E6=88=90=E5=8A=9F=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E9=9C=80=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 aa5e2c2a6..97434a0c9 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -269,7 +269,7 @@ class CoursesController < ApplicationController format.api { render :action => 'show', :status => :created, :location => url_for(:controller => 'courses', :action => 'show', :id => @course.id) } end else - @course.destroy + #@course.destroy respond_to do |format| format.html { render :action => 'new', :layout => 'base' } #Added by young format.api { render_validation_errors(@course) }