diff --git a/app/controllers/schools_controller.rb b/app/controllers/schools_controller.rb index dce74bc..b651c99 100644 --- a/app/controllers/schools_controller.rb +++ b/app/controllers/schools_controller.rb @@ -69,7 +69,7 @@ class SchoolsController < ApplicationController private # Use callbacks to share common setup or constraints between actions. def set_school - @school = School.where(:id => params[:id]).includes(:tournament,:wrestlers,:deductedPoints).first + @school = School.where(:id => params[:id]).includes(:tournament,:wrestlers,:deductedPoints,:delegates).first end # Never trust parameters from the scary internet, only allow the white list through. diff --git a/app/views/schools/show.html.erb b/app/views/schools/show.html.erb index 58fe6d3..dacc026 100644 --- a/app/views/schools/show.html.erb +++ b/app/views/schools/show.html.erb @@ -51,7 +51,6 @@
<% @wrestlers.sort_by{|w| w.weight.max}.each do |wrestler| %> - <% cache ["schools_view_wrestler", wrestler] do %>