mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-03 13:30:02 +00:00
Added a bout board
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user