From 54753fece4f61443e58033add5cc02517d4c3152 Mon Sep 17 00:00:00 2001 From: Sergio Castellano Herrera Date: Tue, 6 Jun 2017 10:02:48 +0100 Subject: [PATCH] Error to access hide comments --- app/views/admin/comments/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/comments/index.html.erb b/app/views/admin/comments/index.html.erb index e07487bcf..4a2c39cce 100644 --- a/app/views/admin/comments/index.html.erb +++ b/app/views/admin/comments/index.html.erb @@ -18,7 +18,7 @@ <% if comment.commentable.hidden? %> (<%= t("admin.comments.index.hidden_#{comment.commentable_type.downcase}") %>: <%= comment.commentable.title %>) <% else %> - <%= link_to comment.commentable.title, comment.commentable %> + <%= link_to comment.commentable.title, commentable_path(comment) %> <% end %>