svenfuchs / routing-filter

routing-filter wraps around the complex beast that the Rails routing system is, allowing for unseen flexibility and power in Rails URL recognition and generation.
http://www.artweb-design.de
MIT License
464 stars 84 forks source link

Routing Error instead of fallback to en #64

Open hopewise opened 7 years ago

hopewise commented 7 years ago

if I do:

http://lvh.me:3000/br/lab

where br language is not added, I get error:

Routing Error
br/lab

Rails.root: /Users/Apple/Documents/projects/my_idea_project

Application Trace | Framework Trace | Full Trace
app/controllers/application_controller.rb:74:in `routing_error'
lib/rack/seoredirect.rb:20:in `call'

How to force en locale at missing locales in the route? ex: /en/lab when br is missing

I am using version 0.6.0 with rails 4.2, please advice!