新建课程大纲的描述
This commit is contained in:
parent
18d677c5eb
commit
b2aee9b1b8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue