From 72b3fc5672b774e5ab4c0e96861456333ce18f26 Mon Sep 17 00:00:00 2001 From: Andreas Haller Date: Tue, 19 May 2015 08:41:39 +0200 Subject: [PATCH] =?UTF-8?q?Redirect=20to=20default=20body=20=E2=80=98/leip?= =?UTF-8?q?zig=E2=80=99=20#21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 01b0e61..bb33723 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,9 @@ Rails.application.routes.draw do - root 'search#index' - get '/' => 'search#index', as: :search + root to: redirect { |path_params| "/leipzig" } + + scope ':body' do + get '/' => 'search#index', as: :search + end post '/auth/:provider/callback', to: 'sessions#create' get '/auth/browser_id', as: 'sign_in'