Starting rails I18n and url helpers seem to confuse locale with id
问题 I have just started trying to update our rails 3.2 app for internationalization. I have an optional scope in the routes, like scope "(:locale)", locale: /en|es|zh-HK|de|fr/ do as described by http://guides.rubyonrails.org/i18n.html. And my url helper like watch_url(@watch) gets errors in the form No route matches {:action=>"show", :controller=>"watches", :locale=>#<Watch id: 1, rule_name: "MyRule", start_time: "2014-06-08 03:30:03", end_time: nil, last_execution_time: nil, frequency_mins: 60,