From 6c780c84db9e39f5049abca78299db3ee414d932 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Thu, 26 Mar 2020 01:33:40 +0200 Subject: [PATCH] Add more missing routes --- config/routes.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 6d15bc7..4acbd21 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -69,8 +69,12 @@ Ensl::Application.routes.draw do resources :predictions resources :rounds resources :matches do |m| - get :admin, to: "matches#admin", on: :collection - get :ref, to: "matches#ref" + member do + get :ref + end + collection do + get :admin + end resources :match_proposals, path: "proposals", as: :proposals, only: [:index, :new, :create, :update] end