aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--actionpack/lib/action_controller/url_rewriter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/url_rewriter.rb b/actionpack/lib/action_controller/url_rewriter.rb
index 45263f40fe..7fdf95a79d 100644
--- a/actionpack/lib/action_controller/url_rewriter.rb
+++ b/actionpack/lib/action_controller/url_rewriter.rb
@@ -43,6 +43,7 @@ module ActionController
path, extras = Routing::Routes.generate(options, @request)
path = "/#{path.join('/')}".chomp '/'
+ path = '/' if path.empty?
path += build_query_string(extras)
return path