课程通知动态无法回复

This commit is contained in:
cxt 2015-12-25 11:10:26 +08:00
parent ce5f0eb855
commit 0b42430e2d
1 changed files with 5 additions and 1 deletions

View File

@ -28,7 +28,11 @@ class CommentsController < ApplicationController
@comment = Comment.new
#@project ? @comment.comments = params[:comment][:comments] : @comment.comments = params[:comment]
@comment.comments = params[:comment][:comments]
if params[:user_activity_id]
@comment.comments = params[:comment]
else
@comment.comments = params[:comment][:comments]
end
@comment.author = User.current
if @news.comments << @comment
if params[:asset_id]