diff --git a/app/views/comments/update.js.haml b/app/views/comments/update.js.haml new file mode 100755 index 0000000..be98f3e --- /dev/null +++ b/app/views/comments/update.js.haml @@ -0,0 +1,4 @@ +- if @result[:status] + :plain + $("#comment_#{@comment.id}_body").html("#{@comment.content}"); + location.hash = "#comment_#{@comment.id}"; \ No newline at end of file