diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-27 13:11:18 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-27 13:14:19 -0400 |
commit | 751ae75e4b790edfbce2cd2340d5d04b98433405 (patch) | |
tree | 19476a53d1c2839e004d720c29e81a3fed1f7fd9 /app/controllers | |
parent | d89b2a90e7a61cb60cdfa4aca6dbcc68cb2a4cd6 (diff) |
TournamentsController: fix gross hack
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/tournaments_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/tournaments_controller.rb b/app/controllers/tournaments_controller.rb index e115f18..fdb80aa 100644 --- a/app/controllers/tournaments_controller.rb +++ b/app/controllers/tournaments_controller.rb @@ -15,8 +15,7 @@ class TournamentsController < ApplicationController when 0 render action: 'show' when 1 - #redirect_to tournament_matches_page(@tournament) - redirect_to "/tournaments/" + @tournament.id.to_s + "/matches" + redirect_to tournament_matches_path(@tournament) when 2 redirect_to tournaments_page end |