From c20cb34dea7c399826ba2ae040f1d10569cfa8ee Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 21 Feb 2013 14:28:20 -0500 Subject: [PATCH] fix fetch all comment js --- app/views/comments/partials/show/_comment.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comments/partials/show/_comment.html.erb b/app/views/comments/partials/show/_comment.html.erb index 69f1bab1e..4b12b6ab9 100644 --- a/app/views/comments/partials/show/_comment.html.erb +++ b/app/views/comments/partials/show/_comment.html.erb @@ -11,7 +11,7 @@ <% if @comment || @comments %> -
  • <%= link_to "View post", post_path(post) %>
  • +
  • <%= link_to "View post", post_path(comment.post_id) %>
  • <% else %>
  • <%= link_to "Reply", new_comment_path(:post_id => comment.post_id), :class => "reply-link", "data-comment-id" => comment.id %>
  • <% if comment.editable_by?(CurrentUser.user) %>