aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-07-29 06:55:35 -0700
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-07-29 06:55:35 -0700
commit06c1a5f9fefad61d7a511192b6e54526c6af5305 (patch)
treef1be6738f17ec5709ef4cd0e1bfb37af943120ff
parent88c0ef4d4fc86faefeec5bfff87ad882f62468d8 (diff)
parent4509f9eaed755235a6cd886f81336c31cdad2425 (diff)
downloadrails-06c1a5f9fefad61d7a511192b6e54526c6af5305.tar.gz
rails-06c1a5f9fefad61d7a511192b6e54526c6af5305.tar.bz2
rails-06c1a5f9fefad61d7a511192b6e54526c6af5305.zip
Merge pull request #11653 from ankit8898/typo
Fixing the broken URL [skip ci]
-rw-r--r--guides/source/i18n.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md
index 2b116c337a..a20e82931d 100644
--- a/guides/source/i18n.md
+++ b/guides/source/i18n.md
@@ -137,7 +137,7 @@ If you want to translate your Rails application to a **single language other tha
However, you would probably like to **provide support for more locales** in your application. In such case, you need to set and pass the locale between requests.
-WARNING: You may be tempted to store the chosen locale in a _session_ or a <em>cookie</em>, however **do not do this**. The locale should be transparent and a part of the URL. This way you won't break people's basic assumptions about the web itself: if you send a URL to a friend, they should see the same page and content as you. A fancy word for this would be that you're being [<em>RESTful</em>](http://en.wikipedia.org/wiki/Representational_State_Transfer. Read more about the RESTful approach in [Stefan Tilkov's articles](http://www.infoq.com/articles/rest-introduction). Sometimes there are exceptions to this rule and those are discussed below.
+WARNING: You may be tempted to store the chosen locale in a _session_ or a <em>cookie</em>, however **do not do this**. The locale should be transparent and a part of the URL. This way you won't break people's basic assumptions about the web itself: if you send a URL to a friend, they should see the same page and content as you. A fancy word for this would be that you're being [<em>RESTful</em>](http://en.wikipedia.org/wiki/Representational_State_Transfer). Read more about the RESTful approach in [Stefan Tilkov's articles](http://www.infoq.com/articles/rest-introduction). Sometimes there are exceptions to this rule and those are discussed below.
The _setting part_ is easy. You can set the locale in a `before_action` in the `ApplicationController` like this: