title: Ruby Rails submit two forms in one click
body: <p>I have these forms:</p>
  
  <pre><code>&lt;%= form_for(@user) do |f| %&gt;
    &lt;div&gt;
      &lt;%= f.number_field :money, :value =&gt; @user.money %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;%= form_for @product, :url =&gt; product_path, :html =&gt; { :multipart =&gt; true }  do |f| %&gt;
    &lt;div&gt;
      &lt;%= f.label :count, 'How Many product?' %&gt;&lt;br /&gt;
      &lt;%= f.number_field :count, :value =&gt; "1" %&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;%= f.submit('submit') %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>is there any way to submit this two at once when clicking submit button ? Thanks!</p>