Created
January 19, 2011 10:32
-
-
Save hemalich/785979 to your computer and use it in GitHub Desktop.
Setting the Locale from the URL Params default_url_options
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
| # app/controllers/application_controller.rb | |
| def default_url_options(options={}) | |
| logger.debug "default_url_options is passed options: #{options.inspect}\n" | |
| { :locale => I18n.locale } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment