diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-21 02:04:01 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-21 02:04:01 +0000 |
commit | 675fd47e8373db9172a22411af8b1aec5a278aa5 (patch) | |
tree | 1e1fee2778ce96691ae12f40a5854ca66417390a /actionpack | |
parent | f3845822401025cffba6bb470ad64e48b9b3a4f6 (diff) | |
download | rails-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')
-rw-r--r-- | actionpack/lib/action_controller/url_rewriter.rb | 1 |
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 |