diff options
author | tkimia <tkimia@purdue.edu> | 2014-04-26 19:16:19 -0400 |
---|---|---|
committer | tkimia <tkimia@purdue.edu> | 2014-04-26 19:16:19 -0400 |
commit | 96dd3fbe302eec54b34678e098d3b59710b09b5f (patch) | |
tree | 95138a74c0abe598d5f205f24067b6fd746b141b /config | |
parent | 10749a6242bec56586b71f4e8b886eddc9edc499 (diff) |
prelim bracket control
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 8 |
1 files changed, 7 insertions, 1 deletions
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 |