diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md index 950bb5e35844943bfc381f6e93b7b7d602fb9773..eff64fad20827d6b422f5ce6228fdbb613cea677 100644 --- a/guides/source/action_view_overview.md +++ b/guides/source/action_view_overview.md @@ -214,7 +214,8 @@ By default `ActionView::Partials::PartialRenderer` has its object in a local var <%= render partial: "product" %> ``` -within product we'll get `@product` in the local variable `product`, as if we had written: +within `_product` partial we'll get `@product` in the local variable `product`, +as if we had written: ```erb <%= render partial: "product", locals: { product: @product } %>