aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/i18n.md
diff options
context:
space:
mode:
authorChristian Ress <bart@github.the-bart.org>2015-03-13 16:15:00 +0100
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2015-03-13 12:43:24 -0300
commitcd67d7eaa8df08fe6a169699318aa76b359b3cb5 (patch)
treef99db5873ba2ea73b240c8041b657aa9838132b0 /guides/source/i18n.md
parentcf5ec92a8b8b8d11f4fa017acc4246de4a4d95fe (diff)
downloadrails-cd67d7eaa8df08fe6a169699318aa76b359b3cb5.tar.gz
rails-cd67d7eaa8df08fe6a169699318aa76b359b3cb5.tar.bz2
rails-cd67d7eaa8df08fe6a169699318aa76b359b3cb5.zip
Added missing closing brace in sample code for safe HTML translations
Closes #19321. [ci skip]
Diffstat (limited to 'guides/source/i18n.md')
-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 1e34261272..e8d0a83dd0 100644
--- a/guides/source/i18n.md
+++ b/guides/source/i18n.md
@@ -707,7 +707,7 @@ you can safely pass the username as set by the user:
```erb
<%# This is safe, it is going to be escaped if needed. %>
-<%= t('welcome_html', username: @current_user.username %>
+<%= t('welcome_html', username: @current_user.username) %>
```
Safe strings on the other hand are interpolated verbatim.