Redirects to root should be / not ""

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@730 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-02-21 02:04:01 +00:00
parent f384582240
commit 675fd47e83
1 changed files with 1 additions and 0 deletions

View File

@ -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