项目新闻 评论内容获取不正确

memcached_alan
sw 10 years ago
parent d08329631a
commit c399ab2e4f

@ -27,7 +27,7 @@ class CommentsController < ApplicationController
raise Unauthorized unless @news.commentable?
@comment = Comment.new
@comment.comments = params[:comment]
@project ? @comment.comments = params[:comment][:comments] : @comment.comments = params[:comment]
@comment.author = User.current
if @news.comments << @comment
if params[:asset_id]

Loading…
Cancel
Save