diff options
author | francis <francis> | 2007-09-03 09:39:20 +0000 |
---|---|---|
committer | francis <francis> | 2007-09-03 09:39:20 +0000 |
commit | ffdbf0562b5e93dfa4d60ca9e4817b1acf1806b0 (patch) | |
tree | 06de6fd3130eaf86af1951ab46f50f4a273d2ad2 /config/routes.rb | |
parent | 8109fa8aed8b9d1a6ca8cac11256558a0cf4832f (diff) |
Make /admin URL work, and give link through to public body editor.
Layout for admin pages.
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 63dfd665e..906466a19 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.5 2007-08-29 12:12:45 francis Exp $ +# $Id: routes.rb,v 1.6 2007-09-03 09:39:21 francis Exp $ ActionController::Routing::Routes.draw do |map| # The priority is based upon order of creation: first created -> highest priority. @@ -13,9 +13,12 @@ ActionController::Routing::Routes.draw do |map| # map.connect 'products/:id', :controller => 'catalog', :action => 'view' # Keep in mind you can assign values other than :controller and :action map.connect "/new/:action", :controller => 'file_request', :action => 'index' - map.connect "/:action/:id", :controller => 'frontpage' + + map.connect '/admin/:action', :controller => 'admin', :action => 'index' map.connect '/admin/body/:action/:id', :controller => 'admin_public_body' + map.connect "/:action/:id", :controller => 'frontpage' + # Sample of named route: # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase' # This route can be invoked with purchase_url(:id => product.id) |