修复新建课程时报错的BUG

This commit is contained in:
sw 2015-03-02 14:33:35 +08:00
parent 18271946d7
commit d999a9f4a6
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ class CoursesController < ApplicationController
def create
cs = CoursesService.new
@course = cs.create_course params,User.current
@course = cs.create_course(params,User.current)[:course]
if @course.new_record?
respond_to do |format|
format.html { render :action => 'new', :layout => 'base' } #Added by young