ruby on rails - Routing issues with High Voltage and locale -


my routes.rb

rails.application.routes.draw   scope "(:locale)", locale: /fr-fr|de-de|es-es|zh-cn/     ":id" => "high_voltage/pages#show", as: :page, format: false ... 

which works fine things on top level /pricing pages nested inside folders (e.g. /pricing/products) routes /zh-cn/pricing%2fproducts (which routes correctly, looks ugly) , /zh-cn/pricing/products not route correctly

get "*id" => "high_voltage/pages#show", as: :page, format: false   

in routes file fixes issue


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -