Full localization implementation
This commit is contained in:
+4
-4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user