diff options
Diffstat (limited to 'actionpack/lib/action_controller/url_rewriter.rb')
-rw-r--r-- | actionpack/lib/action_controller/url_rewriter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/url_rewriter.rb b/actionpack/lib/action_controller/url_rewriter.rb index a1b1a2a57b..45263f40fe 100644 --- a/actionpack/lib/action_controller/url_rewriter.rb +++ b/actionpack/lib/action_controller/url_rewriter.rb @@ -42,7 +42,7 @@ module ActionController RESERVED_OPTIONS.each {|k| options.delete k} path, extras = Routing::Routes.generate(options, @request) - path = "/#{path.join('/')}" + path = "/#{path.join('/')}".chomp '/' path += build_query_string(extras) return path @@ -135,4 +135,4 @@ module ActionController return query_string end end -end
\ No newline at end of file +end |