This project is archived and is in readonly mode.
UrlHelper#mail_to
Reported by apeiros | September 18th, 2008 @ 08:51 PM | in 2.x
For glory (speed improvement):
old: .each_byte do |c| string << sprintf("%%%x", c) end new: .unpack("H*").first.gsub(/../, "%\&")
Personally I'd pack that into its own String method or helper at least, just to improve readability.
Comments and changes to this ticket
-
Pratik September 18th, 2008 @ 08:51 PM
- State changed from new to hold
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>