From c7ea907d05afa5ca973b888fa04dc5e40d6f43b0 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 10cafbf..015acab 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]