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
Post a Comment