diff --git a/app/views/schools/show.html.erb b/app/views/schools/show.html.erb index a4362f2..ec78fc2 100644 --- a/app/views/schools/show.html.erb +++ b/app/views/schools/show.html.erb @@ -37,8 +37,8 @@
-<% cache ["#{@school.id}_school_show", @school] do %> <% @wrestlers.sort_by{|w| w.weight.max}.each do |wrestler| %> + <% cache ["#{wrestler.id}_school_show", @school] do %>