1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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