diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-07 12:43:23 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-07 12:43:23 -0400 |
commit | 87d69d44d9d7f56071f34597fd46bd26b59ab9fd (patch) | |
tree | 9caad9629900e93575199c60b9be2120e29e412c /app/controllers/tournaments_controller.rb | |
parent | d6b32cbd1234634740fda22f43c1dd1b31b20d35 (diff) |
stuff
Diffstat (limited to 'app/controllers/tournaments_controller.rb')
-rw-r--r-- | app/controllers/tournaments_controller.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index 2fc82ed..f572248 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -14,8 +14,11 @@ class TournamentsController < ApplicationController case @tournament.status when 0 render action: 'show' - when 1..2 - redirect_to "/tournaments/" + @tournament.id.to_s + "/matches" #tournament_matches_page(@tournament) + when 1 + #redirect_to tournament_matches_page(@tournament) + redirect_to "/tournaments/" + @tournament.id.to_s + "/matches" + when 2 + redirect_to tournaments_page end } format.json { |