From 96dd3fbe302eec54b34678e098d3b59710b09b5f Mon Sep 17 00:00:00 2001 From: tkimia Date: Sat, 26 Apr 2014 19:16:19 -0400 Subject: prelim bracket control --- config/routes.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index d7807f0..a4df5b4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,4 @@ Leaguer::Application.routes.draw do - resources :brackets resources :sessions, only: [:new, :create, :destroy] @@ -15,6 +14,7 @@ Leaguer::Application.routes.draw do resources :tournaments do resources :matches, only: [:index, :show, :update] + resources :brackets end resource :server, only: [:show, :edit, :update] @@ -33,6 +33,12 @@ Leaguer::Application.routes.named_routes.module.module_eval do def match_url(match, options={}) tournament_match_url(match.tournament_stage.tournament, match, options) end + def bracket_path(bracket, options={}) + tournament_bracket_path(bracket.tournament, bracket, options) + end + def bracket_url(bracket, options={}) + tournament_bracket_url(bracket.tournament, bracket, options) + end end if false -- cgit v1.2.3