fixed comment quoting

This commit is contained in:
albert
2011-09-13 18:41:50 -04:00
parent e8d16b2b33
commit 13995cfd39
4 changed files with 38 additions and 2 deletions

View File

@@ -36,6 +36,13 @@ class CommentsController < ApplicationController
respond_with(@comment)
end
def show
@comment = Comment.find(params[:id])
respond_with(@comment) do |format|
format.json {render :json => @comment.to_json(:methods => [:creator_name])}
end
end
private
def index_for_post
@post = Post.find(params[:post_id])