From d89b2a90e7a61cb60cdfa4aca6dbcc68cb2a4cd6 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 27 Apr 2014 13:10:59 -0400 Subject: routs.rb#brackets: don't route /new --- config/routes.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config') 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) -- cgit v1.2.3