aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-06-17 00:25:24 +0000
committerRick Olson <technoweenie@gmail.com>2006-06-17 00:25:24 +0000
commit2bbcff8cf4488c0f64bf5ac23e9b5a8eb13f07d5 (patch)
tree4dfbb6fed967bb9508748416bbfb44e1c7486217 /actionpack/lib
parent36dc94a6a1e742848c5a80975b8bf5d216f54022 (diff)
downloadrails-2bbcff8cf4488c0f64bf5ac23e9b5a8eb13f07d5.tar.gz
rails-2bbcff8cf4488c0f64bf5ac23e9b5a8eb13f07d5.tar.bz2
rails-2bbcff8cf4488c0f64bf5ac23e9b5a8eb13f07d5.zip
Fix that routes with *path segments in the recall can generate URLs. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4454 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/routing.rb2
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