You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there are two templates defined with same local variable, the variable in the called template is shadowed by the variable in the calling template.
I assume that child.html.haml is a template and not a partial, because it's missing the leading underscore in the name. The correct way to render a template is to use the :template key. Can you please try with:
When there are two templates defined with same local variable, the variable in the called template is shadowed by the variable in the calling template.
E.g.
parent.html.haml
child.html.haml
= node.title
In the child template
node
refers tonode
inparent
template but should refer tochild
in that template.The text was updated successfully, but these errors were encountered: