We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 420937f commit adde07eCopy full SHA for adde07e
README.adoc
@@ -1342,7 +1342,7 @@ Use the short form of the I18n methods: `I18n.t` instead of `I18n.translate` and
1342
1343
=== Lazy Lookup [[lazy-lookup]]
1344
1345
-Use "lazy" lookup for the texts used in views. Let's say we have the following structure:
+Use "lazy" lookup for locale entries from views and controllers. Let's say we have the following structure:
1346
1347
----
1348
en:
@@ -1355,6 +1355,10 @@ The value for `users.show.title` can be looked up in the template `app/views/use
1355
1356
[source,ruby]
1357
1358
+# bad
1359
+= t 'users.show.title'
1360
+
1361
+# good
1362
= t '.title'
1363
1364
0 commit comments