mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-17 13:24:36 +00:00
Fixed query for schools show view
This commit is contained in:
@@ -10,7 +10,7 @@ class SchoolsController < ApplicationController
|
|||||||
# GET /schools/1
|
# GET /schools/1
|
||||||
# GET /schools/1.json
|
# GET /schools/1.json
|
||||||
def show
|
def show
|
||||||
@wrestlers = Wrestler.all
|
@wrestlers = Wrestler.where(school_id: @school.id)
|
||||||
@tournament = Tournament.find(@school.tournament_id)
|
@tournament = Tournament.find(@school.tournament_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user