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

:include_default_locale ignored in routes.rb ? #23

Open
tomsquest opened this issue Mar 11, 2011 · 1 comment
Open

:include_default_locale ignored in routes.rb ? #23

tomsquest opened this issue Mar 11, 2011 · 1 comment

Comments

@tomsquest
Copy link

It seems that passing the ":include_default_locale => false" parameter in routes.rb has no effect (ie. include_default_locale is always true).

In routes.rb, what does not work :
filter :locale, :include_default_locale => false
(maybe it is not the way it should be done)

Workaround (set the attribute directly):
filter :locale
RoutingFilter::Locale.include_default_locale = false

So, maybe the problem is : how to set the include_default_locale attribute.

@asalme
Copy link

asalme commented Apr 15, 2011

Set it in an initializer, thats how I do it.

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