config/routes.rb in cambium-1.3.0 vs config/routes.rb in cambium-1.3.1

- old
+ new

@@ -10,11 +10,17 @@ resources :settings end if ActiveRecord::Base.connection.table_exists?('cambium_pages') Cambium::Page.published.each do |page| + template = page.template + next if template.nil? || page.page_path.blank? begin - get page.page_path => 'pages#show' unless page.page_path.blank? + if template.respond_to?(:controller) && template.respond_to?(:action) + get page.page_path => "/#{template.controller}##{template.action}" + else + get page.page_path => 'pages#show' + end rescue end end end