From 143c04b6f5ff7fc474c620620ef947a567e7965c Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Sat, 25 Apr 2015 23:32:51 -0400 Subject: [PATCH] Fixed query for schools show view --- app/controllers/schools_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/schools_controller.rb b/app/controllers/schools_controller.rb index 5902334..d3fb5c6 100644 --- a/app/controllers/schools_controller.rb +++ b/app/controllers/schools_controller.rb @@ -10,7 +10,7 @@ class SchoolsController < ApplicationController # GET /schools/1 # GET /schools/1.json def show - @wrestlers = Wrestler.all + @wrestlers = Wrestler.where(school_id: @school.id) @tournament = Tournament.find(@school.tournament_id) end