We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On controller/application_controller.rb you have
controller/application_controller.rb
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.
undefined http_accept_language.compatible_language_from
gem 'http_accept_language'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On
controller/application_controller.rb
you havedef 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 addgem 'http_accept_language'
on my gemfile to make it work.The text was updated successfully, but these errors were encountered: