From 14e3a355fb4c68cc6ab8d123e107e65b8511bd6f Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 14 Nov 2009 10:42:21 +0100 Subject: nodes :show now also includes a direct link to to the live version of the node. Additionally, I changed the default route to a named route so it is much easier to generate proper public paths and urls. --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/routes.rb b/config/routes.rb index 9b5980b..c2590bd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -33,6 +33,6 @@ ActionController::Routing::Routes.draw do |map| map.connect 'galleries/*page_path', :controller => 'content', :action => 'render_gallery' - map.connect '/*page_path', + map.content '/*page_path', :controller => 'content', :action => 'render_page' end -- cgit v1.3