diff --git a/app/views/comments/create.js.haml b/app/views/comments/create.js.haml new file mode 100755 index 0000000..7c7cde0 --- /dev/null +++ b/app/views/comments/create.js.haml @@ -0,0 +1,4 @@ +- if @result[:status] + $("#article_comment_content").val(''); + $('#no_comments').remove(); + $("#paginate").prepend("#{escape_javascript(render partial: 'articles/comment', locals: {comment: @comment})}"); \ No newline at end of file