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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user