Skip to content

Commit 23af6f3

Browse files
authored
Merge pull request rails#51180 from cjilbert504/patch-1
Update layouts_and_rendering.md
2 parents 4730000 + 9c01c39 commit 23af6f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/layouts_and_rendering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ Rails also makes a counter variable available within a partial called by the col
13631363
<%= product_counter %> # 0 for the first product, 1 for the second product...
13641364
```
13651365
1366-
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`.
1366+
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`.
13671367
13681368
#### Spacer Templates
13691369

0 commit comments

Comments
 (0)