Created
January 19, 2011 10:30
-
-
Save hemalich/785977 to your computer and use it in GitHub Desktop.
Setting the Locale from the URL Params ApplicationController
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| before_filter :set_locale | |
| def set_locale | |
| I18n.locale = params[:locale] | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment