The frequently used render_overridable method has limitations in how it passes locals to partials. If the rendered page is a partial and you pass locals: {variable: variable} to it, variable will still be undefined in the partial. You can only access it with locals[:variable]. I think that this is a rails syntax issue.
The frequently used
render_overridable
method has limitations in how it passes locals to partials. If the rendered page is a partial and you passlocals: {variable: variable}
to it,variable
will still be undefined in the partial. You can only access it withlocals[:variable]
. I think that this is a rails syntax issue.