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

http_accept_language Error #45

Open
forddyce opened this issue Aug 19, 2015 · 0 comments
Open

http_accept_language Error #45

forddyce opened this issue Aug 19, 2015 · 0 comments

Comments

@forddyce
Copy link

On controller/application_controller.rb you have

def set_locale I18n.locale = current_user.try(:locale) || http_accept_language.compatible_language_from(I18n.available_locales) || I18n.default_locale end

that throws undefined http_accept_language.compatible_language_from error. I had to add gem 'http_accept_language' on my gemfile to make it work.

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

1 participant