aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-21 02:04:01 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-21 02:04:01 +0000
commit675fd47e8373db9172a22411af8b1aec5a278aa5 (patch)
tree1e1fee2778ce96691ae12f40a5854ca66417390a /actionpack/lib/action_controller
parentf3845822401025cffba6bb470ad64e48b9b3a4f6 (diff)
downloadrails-675fd47e8373db9172a22411af8b1aec5a278aa5.tar.gz
rails-675fd47e8373db9172a22411af8b1aec5a278aa5.tar.bz2
rails-675fd47e8373db9172a22411af8b1aec5a278aa5.zip
Redirects to root should be / not ""
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-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