mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Updated bracket views for all pool bracket types
This commit is contained in:
@@ -36,6 +36,7 @@ class StaticPagesController < ApplicationController
|
||||
|
||||
if params[:weight]
|
||||
@weight = Weight.find(params[:weight])
|
||||
@bracketType = @weight.pool_bracket_type
|
||||
@tournament = Tournament.find(@weight.tournament_id)
|
||||
@matches = @tournament.upcomingMatches.select{|m| m.weight_id == @weight.id}
|
||||
@wrestlers = Wrestler.where(weight_id: @weight.id)
|
||||
|
||||
Reference in New Issue
Block a user