#40 √ resolved
Scott Fleckenstein

String#to_param in sinatra conflicts with ActiveSupport

Reported by Scott Fleckenstein | July 30th, 2008 @ 11:31 PM | in 0.3.0 Sammy

Sinatra defines to_param to URI escape the string it is called upon. Unfortunately, ActiveSupport depends on to_param for string to be an identity function. This can be illustrated with the following script:


require 'rubygems'
require 'active_support'
puts({"name" => "Scott Fleckenstein"}.to_query) # => name=Scott+Fleckenstein
require 'sinatra'
puts({"name" => "Scott Fleckenstein"}.to_query) # => name=Scott%2520Fleckenstein
exit(0)

to_param appears to be not used at all.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »