title: How to render a form partial in Rails 4?
body: <blockquote>
    <p>undefined local variable or method `f' for #&lt;#:0x000001080edfe0></p>
  </blockquote>
  
  <p>I am trying to render a form within a template page with:</p>
  
  <pre><code>&lt;%= form_for @vehicle, html: { class: "f_grp" }, remote: true do |f| %&gt;
    &lt;%= render "vehicles", locals: { f: f } %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>The file is loading. But I'm getting an undefined method on <code>f</code> error. Any ideas?</p>