diff options
author | elijah <elijah@riseup.net> | 2015-06-15 17:14:26 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-06-15 17:14:26 -0700 |
commit | 83a9cadbb13bd2292c7d064d40721fa5f64119fb (patch) | |
tree | 294c13678a0514634a6817428d2c656738c14e52 /config | |
parent | 12ab515ecd448f98ff006e30a93e43626183b6d0 (diff) |
added CommonLanguages gem
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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" |