Permalink
Browse files

Cut down on what we respond to thus eliminating heaps of routes.

  • Loading branch information...
1 parent b33c351 commit 78c119502f73576eb1e56fce8f7f39a9a194ce86 @parndt parndt committed Sep 17, 2010
Showing with 7 additions and 10 deletions.
  1. +7 −10 vendor/refinerycms/pages/config/routes.rb
@@ -1,5 +1,5 @@
Refinery::Application.routes.draw do
- resources :pages
+ get '/pages/:id', :to => 'pages#show', :as => :page
scope(:path => 'refinery', :as => 'admin', :module => 'admin') do
resources :pages do
@@ -8,17 +8,14 @@
end
end
- resources :page_parts
-
- resource :pages do
- resources :dialogs, :controller => :pages_dialogs do
- collection do
- get :link_to
- get :test_url
- get :test_email
- end
+ resources :pages_dialogs, :only => [] do
+ collection do
+ get :link_to
+ get :test_url
+ get :test_email
end
end
+ resources :page_parts, :only => [:new, :create, :destroy]
end
end

0 comments on commit 78c1195

Please sign in to comment.