aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorfrancis <francis>2007-10-30 18:52:26 +0000
committerfrancis <francis>2007-10-30 18:52:26 +0000
commit46b93b6f2aa7dd0f3c39f5bfbd86ba1c67022a98 (patch)
tree8079ce08bab8b2029c0480ea5166940c359b938b /config/routes.rb
parent326c8c3b26ce95fb60cc3c519e00e1b178fada50 (diff)
Search history of public body short names in URLs and redirect from that.
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 2ee97376c..66740a58a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: routes.rb,v 1.18 2007-10-30 17:31:32 francis Exp $
+# $Id: routes.rb,v 1.19 2007-10-30 18:52:27 francis Exp $
ActionController::Routing::Routes.draw do |map|
# The priority is based upon order of creation: first created -> highest priority.
@@ -28,7 +28,7 @@ ActionController::Routing::Routes.draw do |map|
user.show_user "/user/:simple_name", :action => 'show'
end
- map.show_public_body "/body/:short_name", :controller => 'body', :action => 'show'
+ map.show_public_body "/body/:simple_short_name", :controller => 'body', :action => 'show'
map.connect '/admin/:action', :controller => 'admin', :action => 'index'
map.connect '/admin/body/:action/:id', :controller => 'admin_public_body'