提交 63628051 编写于 作者: Y yui-knk

[ci skip] Declare `product` as `_product partial`

上级 228e3f01
......@@ -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 } %>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册