From 9c01c3948069aa581431f28da738240980eca02b Mon Sep 17 00:00:00 2001 From: Collin Jilbert <54157657+cjilbert504@users.noreply.github.com> Date: Sat, 24 Feb 2024 07:35:07 -0600 Subject: [PATCH] Update layouts_and_rendering.md This PR corrects a reference to the act of renaming a partial when in fact it is a local variable that would be renamed instead. --- guides/source/layouts_and_rendering.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/layouts_and_rendering.md b/guides/source/layouts_and_rendering.md index c9291cb97b..263fb4a0e2 100644 --- a/guides/source/layouts_and_rendering.md +++ b/guides/source/layouts_and_rendering.md @@ -1363,7 +1363,7 @@ Rails also makes a counter variable available within a partial called by the col <%= product_counter %> # 0 for the first product, 1 for the second product... ``` -This also works when the partial name is changed using the `as:` option. So if you did `as: :item`, the counter variable would be `item_counter`. +This also works when the local variable name is changed using the `as:` option. So if you did `as: :item`, the counter variable would be `item_counter`. #### Spacer Templates