diff options
author | Christian Ress <bart@github.the-bart.org> | 2015-03-13 16:15:00 +0100 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2015-03-13 12:43:24 -0300 |
commit | cd67d7eaa8df08fe6a169699318aa76b359b3cb5 (patch) | |
tree | f99db5873ba2ea73b240c8041b657aa9838132b0 /guides | |
parent | cf5ec92a8b8b8d11f4fa017acc4246de4a4d95fe (diff) | |
download | rails-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')
-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 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. |