From 626d5caf0fb4fe242c24dda294457479eebe6c16 Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Mon, 23 Jul 2018 14:29:54 +0100 Subject: [PATCH] Scope instance_statistics to dash --- config/routes.rb | 3 ++- config/routes/instance_statistics.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 17b969f669d..63e40a31b76 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -70,6 +70,8 @@ Rails.application.routes.draw do get 'ide' => 'ide#index' get 'ide/*vueroute' => 'ide#index', format: false + + draw :instance_statistics end # Koding route @@ -110,7 +112,6 @@ Rails.application.routes.draw do draw :group draw :user draw :project - draw :instance_statistics root to: "root#index" diff --git a/config/routes/instance_statistics.rb b/config/routes/instance_statistics.rb index 365797cb688..725549beb7e 100644 --- a/config/routes/instance_statistics.rb +++ b/config/routes/instance_statistics.rb @@ -1,5 +1,5 @@ namespace :instance_statistics do - root to: redirect("instance_statistics/conversational_development_index") + root to: redirect('-/instance_statistics/conversational_development_index') resources :cohorts, only: :index resources :conversational_development_index, only: :index