aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_view_overview.md
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-02-13 20:36:16 +0900
committerRyuta Kamizono <kamipo@gmail.com>2016-02-13 20:44:44 +0900
commit1335959135b908c284e4d7179e9d8c1261f0ee95 (patch)
treecffbcba4cec86968869573e7bb1ee8a63f7492e8 /guides/source/action_view_overview.md
parente183227e5c7665b6505dd319724f1a540946b7ce (diff)
downloadrails-1335959135b908c284e4d7179e9d8c1261f0ee95.tar.gz
rails-1335959135b908c284e4d7179e9d8c1261f0ee95.tar.bz2
rails-1335959135b908c284e4d7179e9d8c1261f0ee95.zip
Fix grammar `a` to `an` [ci skip]
Diffstat (limited to 'guides/source/action_view_overview.md')
-rw-r--r--guides/source/action_view_overview.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md
index 543937f8e5..5e6eae1071 100644
--- a/guides/source/action_view_overview.md
+++ b/guides/source/action_view_overview.md
@@ -1524,7 +1524,7 @@ Localized Views
Action View has the ability to render different templates depending on the current locale.
-For example, suppose you have a `ArticlesController` with a show action. By default, calling this action will render `app/views/articles/show.html.erb`. But if you set `I18n.locale = :de`, then `app/views/articles/show.de.html.erb` will be rendered instead. If the localized template isn't present, the undecorated version will be used. This means you're not required to provide localized views for all cases, but they will be preferred and used if available.
+For example, suppose you have an `ArticlesController` with a show action. By default, calling this action will render `app/views/articles/show.html.erb`. But if you set `I18n.locale = :de`, then `app/views/articles/show.de.html.erb` will be rendered instead. If the localized template isn't present, the undecorated version will be used. This means you're not required to provide localized views for all cases, but they will be preferred and used if available.
You can use the same technique to localize the rescue files in your public directory. For example, setting `I18n.locale = :de` and creating `public/500.de.html` and `public/404.de.html` would allow you to have localized rescue pages.