1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Fixed query for schools show view

This commit is contained in:
2015-04-25 23:32:51 -04:00
parent d0d562ddf8
commit 143c04b6f5

View File

@@ -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