Forum: Ruby on Rails routing: Unescape urls

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
671af8c4a2d223c7d2e2ede3a0154975?d=identicon&s=25 Eduard Bondarenko (edbond)
on 2009-04-27 13:06
(Received via mailing list)
Hello All,

How to make rails unescape incoming urls? I want to use russian chars
in routes, like:

map.city URI.escape("/ëÁÒÔÁ--:title--:id"), :controller =>
"cities", :action => "show" It seems to works (page loads) but all
links on page looks like this:
http://localhost/%25D0%259A%25D0%25B0%25D1%2580%25...

Rails double escapes url?

Also I tried url_for(.... :escape => false), it doesn't help.

Thanks in advance,
Eduard
This topic is locked and can not be replied to.