From 1788dde36e53c4ef16adc5db2d19f44797325496 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 6 Mar 2014 18:55:38 -0500 Subject: implement tournament joining --- config/routes.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 2409eb2..fc9d45a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,9 +15,11 @@ Leaguer::Application.routes.draw do resources :matches - resources :tournaments - - #set 'selected' to: 'tournaments#selected' via: 'get' + resources :tournaments do + collection do + post 'join' + end + end resources :servers -- cgit v1.2.3 From eebd00ba4692a6a285c9807705331ab924ce225f Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 6 Mar 2014 18:55:51 -0500 Subject: routes: make server a single resource --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index fc9d45a..580ec72 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -21,7 +21,7 @@ Leaguer::Application.routes.draw do end end - resources :servers + resource :server, only: [:show, :edit, :update] root to: 'static#homepage' -- cgit v1.2.3 From 7bcd854443e368806cf1f4ece562c157db723d1a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 6 Mar 2014 20:37:53 -0500 Subject: fix joining a tournament --- config/routes.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 4563a9a..6e11f31 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -9,11 +9,7 @@ Leaguer::Application.routes.draw do resources :matches - resources :tournaments do - collection do - post 'join' - end - end + resources :tournaments resource :server, only: [:show, :edit, :update] -- cgit v1.2.3