aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 3ecfdb373..4de8c1a35 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.36 2008-02-22 01:58:37 francis Exp $
+# $Id: routes.rb,v 1.37 2008-02-22 13:49:37 francis Exp $
ActionController::Routing::Routes.draw do |map|
# The priority is based upon order of creation: first created -> highest priority.
@@ -36,12 +36,15 @@ ActionController::Routing::Routes.draw do |map|
user.show_user '/user/:simple_name', :action => 'show'
end
+ map.with_options :controller => 'body' do |body|
+ body.list_public_bodies "/body", :action => 'list'
+ body.show_public_body "/body/:simple_short_name", :action => 'show'
+ end
+
map.with_options :controller => 'help' do |help|
help.help_general '/help/:action', :action => :action
end
- map.show_public_body "/body/:simple_short_name", :controller => 'body', :action => 'show'
-
# NB: We don't use routes to *construct* admin URLs, as they need to be relative
# paths to work on the live site proxied over HTTPS to secure.mysociety.org
map.connect '/admin/:action', :controller => 'admin', :action => 'index'