[PATCH conductor 1/7] redirect requests that do not match any explicit path to the default action

Mo Morsi mmorsi at redhat.com
Wed May 9 12:55:57 UTC 2012


---
 src/config/routes.rb |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/config/routes.rb b/src/config/routes.rb
index a95389f..213be87 100644
--- a/src/config/routes.rb
+++ b/src/config/routes.rb
@@ -92,6 +92,7 @@ Conductor::Application.routes.draw do
     end
   end
   resources :pools do
+    delete :destroy, :on => :collection
     delete :multi_destroy, :on => :collection
     post :filter, :on => :collection
   end
@@ -147,7 +148,7 @@ Conductor::Application.routes.draw do
     end
   end
 
-  resources :provider_accounts, :only => :index
+  resources :provider_accounts
 
   resources :provider_types, :only => :index
 
@@ -267,5 +268,5 @@ Conductor::Application.routes.draw do
   match     'dashboard', :to => 'dashboard', :as => 'dashboard'
   root      :to => "pools#index"
 
-  match '/:controller(/:action(/:id))'
+  match '*path' => 'pools#index'
 end
-- 
1.7.6.5




More information about the aeolus-devel mailing list