aboutsummaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorfrancis <francis>2007-10-30 14:49:07 +0000
committerfrancis <francis>2007-10-30 14:49:07 +0000
commit7bb03ac91ff61b35e8b51d68d9538b04cf96a794 (patch)
tree61031a3cfaacb02cf5b641357aa026e9794b2a01 /config/routes.rb
parent7666c121d416bfff0593396937abda54b258b536 (diff)
Remove last index action and rename it show - index is confusing as an action
name as it isn't clear if it is going to be list or show.
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 7d4e0c3f0..5c5cc905b 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.15 2007-10-16 21:17:15 louise Exp $
+# $Id: routes.rb,v 1.16 2007-10-30 14:49:08 francis Exp $
ActionController::Routing::Routes.draw do |map|
# The priority is based upon order of creation: first created -> highest priority.
@@ -25,7 +25,7 @@ ActionController::Routing::Routes.draw do |map|
user.signin '/signin', :action => 'signin'
user.signup '/signup', :action => 'signup'
user.signout '/signout', :action => 'signout'
- user.show_user "/user/:name", :action => 'index'
+ user.show_user "/user/:name", :action => 'show'
end
map.public_body "/body/:short_name", :controller => 'body', :action => 'show'
@@ -47,6 +47,7 @@ ActionController::Routing::Routes.draw do |map|
# Install the default route as the lowest priority.
# FAI: Turned off for now, as to be honest I don't trust it from a security point of view.
+ # Somebody is bound to leave a method public in a controller that shouldn't be.
#map.connect ':controller/:action/:id.:format'
#map.connect ':controller/:action/:id'
# map.connect '/:controller/:action'