local variables in form rendered by partial (rendered by helper) undefined

This goes from controller through some partials to a helper to a form and then rails complains that the local variables in <%= form_for [post, comment], remote: true,
… are undefined

https://gist.github.com/mices/bfdf659b74efdb00875ba45bb93f70f7