popular/missed searches: fix blank views.

Fix missing call to `.each`.
This commit is contained in:
evazion
2020-06-16 13:09:05 -05:00
parent 101e8a13b8
commit a572a6614d
4 changed files with 6 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
</tr>
</thead>
<tbody>
<% @search_service.missed_search_rankings do |tags, count| %>
<% @search_service.missed_search_rankings.each do |tags, count| %>
<tr class="tag-type-<%= Tag.category_for(tags) %>">
<td><%= link_to tags, posts_path(:tags => tags) %></td>
<td>

View File

@@ -13,7 +13,7 @@
</tr>
</thead>
<tbody>
<% @search_service.post_search_rankings(@date) do |tags, count| %>
<% @search_service.post_search_rankings(@date).each do |tags, count| %>
<tr class="tag-type-<%= Tag.category_for(tags) %>">
<td><%= link_to tags, posts_path(:tags => tags) %></td>
<td style="text-align: right;"><%= count.to_i %></td>