From 83a9cadbb13bd2292c7d064d40721fa5f64119fb Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 15 Jun 2015 17:14:26 -0700 Subject: added CommonLanguages gem --- config/routes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 3936824..c420205 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,7 +4,7 @@ LeapWeb::Application.routes.draw do # so that the path will be correctly prefixed with the locale. # root :to => "home#index" - get '(:locale)' => 'home#index', :locale => MATCH_LOCALE, :as => 'home' + get '(:locale)' => 'home#index', :locale => CommonLanguages.match_available, :as => 'home' # # HTTP Error Handling @@ -13,7 +13,7 @@ LeapWeb::Application.routes.draw do match '/404' => 'errors#not_found' match '/500' => 'errors#server_error' - scope "(:locale)", :locale => MATCH_LOCALE, :controller => 'pages', :action => 'show' do + scope "(:locale)", :locale => CommonLanguages.match_available, :controller => 'pages', :action => 'show' do get 'privacy-policy', :as => 'privacy_policy' get 'terms-of-service', :as => 'terms_of_service' get 'about', :as => 'about' @@ -38,7 +38,7 @@ LeapWeb::Application.routes.draw do resources :configs, :only => [:index, :show] end - scope "(:locale)", :locale => MATCH_LOCALE do + scope "(:locale)", :locale => CommonLanguages.match_available do get "login" => "sessions#new", :as => "login" delete "logout" => "sessions#destroy", :as => "logout" -- cgit v1.2.3