diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-11-04 15:31:02 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-12-18 14:03:48 +0000 |
commit | e487e7104b53b4176972f7ad1af2a69f89ea17f1 (patch) | |
tree | 2c2ef076636f45b2fce048ac6701c18926eb55a5 /config/routes.rb | |
parent | 1ab915c1b2fbcfba5b4c8d7d58154ab72cee47cb (diff) |
Move show method to use RESTful routing
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 9c990bc3f..50125359f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -171,12 +171,11 @@ Alaveteli::Application.routes.draw do #### AdminPublicBody controller scope '/admin', :as => 'admin' do resources :bodies, - :except => [:new, :show, :create, :update, :edit, :destroy], + :except => [:new, :create, :update, :edit, :destroy], :controller => 'admin_public_body' do end end match '/admin/missing_scheme' => 'admin_public_body#missing_scheme', :as => :admin_body_missing - match '/admin/body/show/:id' => 'admin_public_body#show', :as => :admin_body_show 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 |