diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-27 13:10:59 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-27 13:14:19 -0400 |
commit | d89b2a90e7a61cb60cdfa4aca6dbcc68cb2a4cd6 (patch) | |
tree | 1f29fdbd20093f644a8af90acf03939809a5036f /config | |
parent | a7a68011785381c3680d81e0eaf29964f0007fe1 (diff) |
routs.rb#brackets: don't route /new
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index a4df5b4..4094479 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -14,7 +14,7 @@ Leaguer::Application.routes.draw do resources :tournaments do resources :matches, only: [:index, :show, :update] - resources :brackets + resources :brackets, only: [:create, :index, :show, :edit, :update, :destroy] end resource :server, only: [:show, :edit, :update] @@ -25,7 +25,6 @@ Leaguer::Application.routes.draw do end - Leaguer::Application.routes.named_routes.module.module_eval do def match_path(match, options={}) tournament_match_path(match.tournament_stage.tournament, match, options) |