How to pass multiple locals to a nested partial
This should be extremely straightforward and well documented, and I've done it several times, although there's something that's still killing me. I have a structure of partials calling nested partials. At some point one render call needs to pass an extra variable to the partial, although the rendering of the partial fails with a: undefined local variable or method `<variable name>' for #<#<Class:....> Here's my code for calling the render : = f.simple_fields_for :orders do |c| = render partial: "fields", locals: {f: c, step: f.object.step} though this doesn't work either: = f.simple_fields_for