From 659f4a4cc551389f7a507015d70f18d850f2b2ff Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Thu, 21 Jul 2005 01:16:06 +0000 Subject: [PATCH] Correction of an earlier commit --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index c89b87f2..59a8c442 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ # Create a route to DEFAULT_WEB, if such is specified; also register a generic route def connect_to_web(map, generic_path, generic_routing_options) if defined? DEFAULT_WEB - explicit_path = generic_path.gsub(':web', DEFAULT_WEB) + explicit_path = generic_path.gsub(/:web\/?/, '') explicit_routing_options = generic_routing_options.merge(:web => DEFAULT_WEB) map.connect(explicit_path, explicit_routing_options) end