Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why default locale is not fallen back to? #67

Open
hopewise opened this issue Sep 12, 2017 · 1 comment
Open

Why default locale is not fallen back to? #67

hopewise opened this issue Sep 12, 2017 · 1 comment

Comments

@hopewise
Copy link

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
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants