title: How to add target to Rails form helper?
body: <p>I'm using the <code>form_for</code> helper and would like it to submit to an iframe.</p>
  
  <pre><code>&lt;%= form_for(section, :target =&gt; 'new_section_frame') do |f| %&gt;
    ...
  &lt;% end %&gt;
  </code></pre>
  
  <p>I should then be able to call <code>$('form').submit()</code> and have the form submit to the iframe. It would work except that the target isn't present in the output html. The <a href="http://guides.rubyonrails.org/form_helpers.html" rel="nofollow">Rails guide on form helpers</a> doesn't have this particular example.</p>