adding counter_cache to comments children and WIPing on the issue

This commit is contained in:
David Gil
2015-08-11 18:43:53 +02:00
parent e880cb4f1a
commit 19ef481917
10 changed files with 66 additions and 23 deletions

View File

@@ -14,11 +14,12 @@
</span>
<p class="reply">
númerototal respuestas
<% if user_signed_in? %>
&nbsp;|&nbsp;
<%= render 'comments/form', {parent: comment, toggeable: true} %></p>
<% end %>
<%= t("debates.debate.responses", count: comment.children_count) %>
<% if user_signed_in? %>
&nbsp;|&nbsp;
<%= render 'comments/form', {parent: comment, toggeable: true} %>
<% end %>
</p>
</div>
<div class="comment-children">