Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

i18n guide: add note about #t and #l aliases

  • Loading branch information...
commit 76f87802a2047754db47fa699fda966dbb6763ba 1 parent d6e6754
@svenfuchs svenfuchs authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 railties/doc/guides/source/i18n.txt
View
8 railties/doc/guides/source/i18n.txt
@@ -29,6 +29,14 @@ translate # lookup translations
localize # localize Date and Time objects to local formats
-------------------------------------------------------
+These have the aliases #t and #l so you can use them like this:
+
+[source, ruby]
+-------------------------------------------------------
+I18n.t 'store.title'
+I18n.l Time.now
+-------------------------------------------------------
+
There are also attribute readers and writers for the following attributes:
[source, ruby]
Please sign in to comment.
Something went wrong with that request. Please try again.