paginate blog comments; fix length/site on AR objects

This commit is contained in:
jomo
2014-09-22 06:29:24 +02:00
parent 15ca378878
commit e767ec729c
5 changed files with 7 additions and 5 deletions

View File

@@ -20,7 +20,7 @@
</div>
</div>
<div id="replies">
<h3><%= "#{pluralize(@thread.replies.length, 'reply')}." %></h3>
<h3><%= "#{pluralize(@thread.replies.size, 'reply')}." %></h3>
<% @replies.each do |reply| %>
<%= render partial: "threadreplies/reply", locals: {reply: reply} %>
<% end %>