CDRH / orchid

Rails Engine for site integration with CDRH API
MIT License
3 stars 0 forks source link

Render_overridable, locals, and partials #257

Open wkdewey opened 1 year ago

wkdewey commented 1 year ago

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.