1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-03 05:27:25 +00:00

Added a bout board

This commit is contained in:
2015-06-19 15:25:01 +00:00
parent 5364c3eee9
commit 0fd3bd64fe
9 changed files with 72 additions and 2 deletions

View File

@@ -8,7 +8,8 @@ class StaticPagesController < ApplicationController
@tournament = Tournament.find(params[:tournament])
end
if @tournament
@matches = @tournament.matches
@matches = @tournament.matches.where(mat_id: nil)
@mats = @tournament.mats
if @matches.empty?
redirect_to "/static_pages/noMatches?tournament=#{@tournament.id}"
end