diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2013-06-14 01:14:56 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2013-06-14 01:14:56 +0530 |
commit | 41a398f859cc46430cb3b655d44c0cb3b41e42ae (patch) | |
tree | 1fefe6aa5560b49ca2142866080caaedaf2bf04d /guides/source/i18n.md | |
parent | 930d0e129c730292ab987eaaf1cd2ba8094e580b (diff) | |
parent | 2f0a5c7ac506b900d101620c4cc338a88ee620e3 (diff) | |
download | rails-41a398f859cc46430cb3b655d44c0cb3b41e42ae.tar.gz rails-41a398f859cc46430cb3b655d44c0cb3b41e42ae.tar.bz2 rails-41a398f859cc46430cb3b655d44c0cb3b41e42ae.zip |
Merge branch 'master' of github.com:lifo/docrails
Conflicts:
guides/source/upgrading_ruby_on_rails.md
Diffstat (limited to 'guides/source/i18n.md')
-rw-r--r-- | guides/source/i18n.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md index 65a85efa69..b248c7645a 100644 --- a/guides/source/i18n.md +++ b/guides/source/i18n.md @@ -174,7 +174,7 @@ end # in your /etc/hosts file to try this out locally def extract_locale_from_tld parsed_locale = request.host.split('.').last - I18n.available_locales.include?(parsed_locale.to_sym) ? parsed_locale : nil + I18n.available_locales.include?(parsed_locale.to_sym) ? parsed_locale : nil end ``` |