From 0ab89a4f2848e9cf7bb0f184dc97188e52ebab03 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Tue, 9 Dec 2014 09:14:48 +0100 Subject: [PATCH] filtre routes --- config/routes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index ddd7824..c35d351 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -212,7 +212,8 @@ Survey::Application.routes.draw do get '*url.html' => 'public/menu_items#show', :as => :menu_item, :f => "html" get '*url.:f' => 'public/menu_items#redirect', :f => "html" - root 'public/menu_items#show' ,:constraints => {:domain => ["new.lepicvert.org", "localhost"]} + root 'public/menu_items#show' ,:constraints => {:domain => ["localhost"]} + root 'public/menu_items#show' ,:constraints => {:domain => ["lepicvert.org"], :subdomain => ["new"]} end