aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-03-14 15:38:39 +1100
committerHenare Degan <henare.degan@gmail.com>2013-03-14 15:38:39 +1100
commit64b475b0497e673637a63af275a3331bc644a860 (patch)
tree3af3d7109ba809df06ab497fa6a7587d2ad024f9
parent476890e21eb325cebf44b069c73682d05d189d89 (diff)
Don't specify an id on a new public body. Fixes problems with using named routes
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 5c76cc96f..0cfdf9398 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -165,7 +165,7 @@ Alaveteli::Application.routes.draw do
match '/admin/body' => 'admin_public_body#index', :as => :admin_body_index
match '/admin/body/list' => 'admin_public_body#list', :as => :admin_body_list
match '/admin/body/show/:id' => 'admin_public_body#show', :as => :admin_body_show
- match '/admin/body/new/:id' => 'admin_public_body#new', :as => :admin_body_new
+ match '/admin/body/new' => 'admin_public_body#new', :as => :admin_body_new
match '/admin/body/edit/:id' => 'admin_public_body#edit', :as => :admin_body_edit
match '/admin/body/update/:id' => 'admin_public_body#update', :as => :admin_body_update
match '/admin/body/create' => 'admin_public_body#create', :as => :admin_body_create