0

My routes.rb

Rails.application.routes.draw do
  scope "(:locale)", locale: /fr-FR|de-DE|es-ES|zh-CN/ do
    get ":id" => "high_voltage/pages#show", as: :page, format: false
...

Which works fine for things on the top level like /pricing however pages nested inside folders (e.g. /pricing/products) get routes like /zh-CN/pricing%2Fproducts (which routes correctly, but looks ugly) and also /zh-CN/pricing/products does not route correctly

wurde
  • 2,487
  • 2
  • 20
  • 39
Lindsey B
  • 556
  • 3
  • 15

1 Answers1

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

in my routes file fixes the issue

Lindsey B
  • 556
  • 3
  • 15