Full localization implementation

This commit is contained in:
2013-03-03 16:43:27 +01:00
parent 27c188773a
commit 1eb181b043
5 changed files with 32 additions and 7 deletions
+4 -4
View File
@@ -155,10 +155,10 @@ Qwaiter::Application.routes.draw do
# just remember to delete public/index.html.
#
#root :to => 'dashboard#home'
root :to => 'pages#home'
scope '(/:locale)', constraints: {locale: /nl|be|de|fr|en/}, defaults: { locale: :nl } do
get "/:name" => "pages#show", constraints: {name: /.*/}, as: :page
root :to => 'pages#home', defaults: {locale: 'nl'}
get '/:locale' => 'pages#home', constraints: {locale: /nl|be|de|fr|en/}
scope '(/:locale)', constraints: {locale: /nl|be|de|fr|en/}, defaults: { locale: 'nl' } do
get "/:name" => "pages#show", constraints: {name: /.*/}, as: :go_to
end
# See how all your routes lay out with "rake routes"