URI.escape is obsolete. Percent-encoding your query string

Ruby 2.7.0 shows a warning when invoking URI.escape or its alias, URI.encode. It might look like a fresh deprecation, but the fact is, these methods have been marked as obsolete for… over 10 years now! If you’re wondering how come you’ve never encountered the warning before, here’s the answer: previously it was displayed only if you run your script in a verbose mode, and this has changed just recently.
URI.escape is obsolete. Percent-encoding your query string #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/uri-escape-is-obsolete-percent-encoding-your-query-string

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles