diff --git a/app/views/categories/show.html.erb b/app/views/categories/show.html.erb index 5fb77129bfed19a39981f0994329500e733cb8b1..f1b2b8a5d0efbe8cd241051332d0dca6f103ec38 100644 --- a/app/views/categories/show.html.erb +++ b/app/views/categories/show.html.erb @@ -8,7 +8,7 @@ </div> <% end %> -<% post_count = @posts.count %> +<% post_count = @posts.to_a.size %> <div class="has-color-tertiary-500 category-meta" title="<%= post_count %>"> <div> <%= short_number_to_human post_count, precision: 1, significant: false %>