config/routes.rb in tb_cms-1.0 vs config/routes.rb in tb_cms-1.0.1
- old
+ new
@@ -1,29 +1,28 @@
Rails.application.routes.draw do
- namespace :spud do
- namespace :admin do
- resources :pages do
- get :page_parts, :on => :collection
- get :clear, :on => :collection
- member do
- post 'preview'
- end
- end
- resources :snippets
-
- resources :menus do
- resources :menu_items
- end
- resources :contacts
- end
- namespace :cms do
- resource :sitemap,:only => "show"
- end
+ namespace :admin do
+ resources :pages do
+ get :page_parts, :on => :collection
+ get :clear, :on => :collection
+ member do
+ post 'preview'
+ end
end
- root :to => 'pages#show'
+ resources :snippets
+ resources :menus do
+ resources :menu_items
+ end
+ resources :contacts
+ end
- # This is located in lib/spud_cms/page_route.rb to make sure it is loaded last
- # match "*id", :controller => "pages",:action => "show", :as => "page"
+ namespace :cms do
+ resource :sitemap,:only => "show"
+ end
+
+ root :to => 'pages#show'
+
+ # This is located in lib/spud_cms/page_route.rb to make sure it is loaded last
+ # match "*id", :controller => "pages",:action => "show", :as => "page"
end