From e56df5c15977bc53c20d1083d405bbe5c97dbacc Mon Sep 17 00:00:00 2001 From: danielvincent <danielgrippi@gmail.com> Date: Thu, 25 Nov 2010 23:34:47 -0500 Subject: [PATCH] fixed issue rendering partial for a comment in comments#create --- app/controllers/comments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 269f35441a..ebd0517aa4 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -20,7 +20,7 @@ class CommentsController < ApplicationController respond_to do |format| format.js{ render :json => { :post_id => @comment.post_id, :comment_id => @comment.id, - :html => render_to_string(:partial => type_partial(@comment), :locals => {:post => @comment, :current_user => current_user})}, + :html => render_to_string(:partial => type_partial(@comment), :locals => {:comment => @comment, :person => current_user, :current_user => current_user})}, :status => 201 } format.html{ render :nothing => true, :status => 201 } end -- GitLab