no route matches on route_paths with special charaters

14 views
Skip to first unread message

dregalus

unread,
Jan 14, 2011, 7:19:46 AM1/14/11
to I18n Routing
Hi all,

i have a problem with the correct translation of some words with
special characters.
Example in my routes.rb:
localized(I18n.available_locales, :verbose => false) do
... match 'land/:id' => 'land#index', :as => :land
... end

In my YML file for Spain the translation for "land" is "país".
named_routes_path:
'land/:id': "país/:id" ... You see the special character "í".

So when i start my rails application and switch the language to
spanish and click on a link like (país/at-austria) that leads me to
this error message:
"No route matches "/pa%C3%ADs/at-austria" " All other routes without a
special character in it, works correctly.
Any suggestions or solutions?

P.S.: I'm using ruby 1.9.2p0 and Rails 3.0.3

Thanks!
Christian
Reply all
Reply to author
Forward
0 new messages