1
0
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:
2015-03-24 21:06:09 +00:00
parent 5c14165d6f
commit 79f44d4600
7 changed files with 638 additions and 2 deletions

View File

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