mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-08 07:22:38 +00:00
Fixed school show caching
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
<% cache ["#{@school.id}_school_show", @school] do %>
|
||||
<p>
|
||||
<strong>Name:</strong>
|
||||
<%= @school.name %>
|
||||
@@ -38,6 +37,7 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% cache ["#{@school.id}_school_show", @school] do %>
|
||||
<% @wrestlers.sort_by{|w| w.weight.max}.each do |wrestler| %>
|
||||
<tr>
|
||||
<td><%= link_to "#{wrestler.name}", wrestler %></td>
|
||||
|
||||
Reference in New Issue
Block a user