1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-17 13:24:36 +00:00

Fixed pooladvance and updated views for when tournament ends

This commit is contained in:
2015-12-04 13:26:32 +00:00
parent ee4239f785
commit c9125527d7
7 changed files with 32 additions and 23 deletions

View File

@@ -148,9 +148,9 @@ class TournamentsController < ApplicationController
def check_for_matches
if @tournament
if @tournament.matches.empty?
redirect_to "/tournaments/#{@tournament.id}/no_matches"
end
if @tournament.matches.empty?
redirect_to "/tournaments/#{@tournament.id}/no_matches"
end
end
end
end