config/routes.rb in cambium-1.2.3 vs config/routes.rb in cambium-1.3.0
- old
+ new
@@ -2,9 +2,21 @@
namespace :admin do
get '/' => 'dashboard#index', :as => :root
get 'dashboard' => 'dashboard#show', :as => :dashboard
get 'search' => 'search#index', :as => :search
+ resources :documents
+ resources :pages, :param => :slug
resources :users
+ resources :settings
+ end
+
+ if ActiveRecord::Base.connection.table_exists?('cambium_pages')
+ Cambium::Page.published.each do |page|
+ begin
+ get page.page_path => 'pages#show' unless page.page_path.blank?
+ rescue
+ end
+ end
end
end