config/kitsune_routes.rb in kitsune-0.2.0 vs config/kitsune_routes.rb in kitsune-0.2.1
- old
+ new
@@ -9,7 +9,13 @@
model.resources :records
model.resources :media, :only => [:new, :create]
end
end
end
- map.connect '/*url', :controller => 'kitsune', :action => 'show'
+
+ if defined?(Page)
+ Page.all.each do |page|
+ map.connect page.url, :controller => 'kitsune', :action => 'show', :url => page.url[1..-1].split('/')
+ end
+ end
+
end