From 515de9b2d497fea43616e38b251399f4f5147d63 Mon Sep 17 00:00:00 2001 From: Liz Date: Thu, 2 Jul 2020 08:59:11 -0400 Subject: [PATCH] Adds parentheses (#249) [ci-skip] --- docs/how-to.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/how-to.md b/docs/how-to.md index cbfa914a9..a292ecb78 100644 --- a/docs/how-to.md +++ b/docs/how-to.md @@ -305,7 +305,7 @@ You have a few ways to do that: 3. you can override entirely the `:item_name` by passing an already pluralized string directly to the helper call: ```erb - <%== pagy_info(@pagy, 'Widgets'.pluralize(@pagy.count) %> + <%== pagy_info(@pagy, 'Widgets'.pluralize(@pagy.count)) %> ``` **Notice**: The variables passed to a Pagy object have the precedence over the variables returned by the `pagy_get_vars`. The fastest way to set the `i18n_key` is passing a literal string to the `pagy` method, the most convenient way is using `pagy_get_vars`, the most flexible way is passing a pluralized string to the helper.