新建课程大纲的描述

This commit is contained in:
cxt 2016-07-01 13:52:22 +08:00
parent 18d677c5eb
commit b2aee9b1b8
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class SyllabusesController < ApplicationController
@syllabus.title = params[:title]
@syllabus.eng_name = params[:eng_name]
@syllabus.user_id = User.current.id
@syllabus.description = Message.where("id = 17848").first.nil? ? '' : Message.where("id = 17848").first.content
@syllabus.description = Message.where("id = 19412").first.nil? ? '' : Message.where("id = 19412").first.content
if @syllabus && @syllabus.save
respond_to do |format|
flash[:notice] = l(:notice_successful_create)