From 5d4f1e0639c0c9cd3491fef8438a116508ad6e1d Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 19 Feb 2009 22:42:09 +0100 Subject: added this route filter from sven fuchs to make this simplified route magic possible. hope i don't foot myself in the shot with it. --- config/routes.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 2ab68c25..b258fb2a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,6 @@ ActionController::Routing::Routes.draw do |map| + map.filter :locale + map.resources :pages map.resources :nodes @@ -7,7 +9,7 @@ ActionController::Routing::Routes.draw do |map| map.resources :users map.resource :session - map.connect ':language/*page_path', + map.connect '/*page_path', :controller => 'content', :action => 'render_page', :requirements => {:language => /\w{2}/} -- cgit v1.3