diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 8638a1afb2..d53becd2a9 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -581,7 +581,7 @@ module ActionController class PathSegment < DynamicSegment EscapedSlash = CGI.escape("/") def interpolation_chunk - "\#{CGI.escape(#{local_name}).gsub(#{EscapedSlash.inspect}, '/')}" + "\#{CGI.escape(#{local_name}.to_s).gsub(#{EscapedSlash.inspect}, '/')}" end def default |