From a9cee1d651984c03ca73695027ca54b8e7c2af15 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Thu, 13 Jun 2019 13:16:47 +0200 Subject: [PATCH] Add routes for bets controller --- config/routes.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 63c742d..d8f761a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,7 +6,9 @@ Rails.application.routes.draw do sessions: 'overrides/sessions' } - resources :matches, only: %i[show update] + resources :matches, only: %i[show update] do + resources :bets, only: %i[index create] + end resources :teams, only: %i[show update] resources :tournaments do resources :statistics, only: %i[index]