diff options
author | Henare Degan <henare.degan@gmail.com> | 2013-03-14 15:38:39 +1100 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2013-03-14 15:38:39 +1100 |
commit | 64b475b0497e673637a63af275a3331bc644a860 (patch) | |
tree | 3af3d7109ba809df06ab497fa6a7587d2ad024f9 | |
parent | 476890e21eb325cebf44b069c73682d05d189d89 (diff) |
Don't specify an id on a new public body. Fixes problems with using named routes
-rw-r--r-- | config/routes.rb | 2 |
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 |