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

Why default locale is not fallen back to? #67

Open hopewise opened 7 years ago

hopewise commented 7 years ago

In my routes, I have:

  Rails.application.routes.draw do
    filter :pagination, :uuid, :locale
  end
 get 'lab' => 'experiments#lab'

however, I got routing error if I tried to visit a route of non-existing locale, like for example: /ko/lab

any idea?

exegeteio commented 4 years ago

This seems like you may have your get in the wrong location. First, try moving up into the routes:

Rails.application.routes.draw do
  filter :pagination, :uuid, :locale
  get 'lab' => 'experiments#lab'
end

If that does not work, can you post the output of rails routes ?