summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-19 22:42:09 +0100
committerhukl <contact@smyck.org>2009-02-19 22:42:09 +0100
commit5d4f1e0639c0c9cd3491fef8438a116508ad6e1d (patch)
treea412372cef3bcbd7f008e65309ef0496c79bc48c /config
parentc22eb34b560c685480a51e95653a04fa0b409453 (diff)
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.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 2ab68c2..b258fb2 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,4 +1,6 @@
1ActionController::Routing::Routes.draw do |map| 1ActionController::Routing::Routes.draw do |map|
2 map.filter :locale
3
2 map.resources :pages 4 map.resources :pages
3 map.resources :nodes 5 map.resources :nodes
4 6
@@ -7,7 +9,7 @@ ActionController::Routing::Routes.draw do |map|
7 map.resources :users 9 map.resources :users
8 map.resource :session 10 map.resource :session
9 11
10 map.connect ':language/*page_path', 12 map.connect '/*page_path',
11 :controller => 'content', :action => 'render_page', 13 :controller => 'content', :action => 'render_page',
12 :requirements => {:language => /\w{2}/} 14 :requirements => {:language => /\w{2}/}
13 15