Locale not set in Application Controller
问题 I've spent the last few hours trying everything possible to make this work, googled, redesigned, tested, etc. - but somehow doesn't get it working. ok, I would like to set the I18n.locale - fairly simple. Basically I implemented what is written on the guide here: http://guides.rubyonrails.org/i18n.html Application_controller.rb before_action :set_locale def set_locale I18n.locale = params[:locale] || I18n.default_locale end In fact mine looks like this: class ApplicationController <