title: Is it possible that Rails form helper get block as submit button?
body: <p>I want to use block as submit button in Rails. The normal usage is like this.</p>
  
  <pre><code>&lt;%= form_tag("sample_path", method: "post") do %&gt;
    &lt;%= hidden_field_tag(:post_id, "5") %&gt;
    &lt;%= submit_tag("Search") %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>But what I want to do is below.</p>
  
  <pre><code>&lt;%= form_tag("sample_path", method: "post") do %&gt;
    &lt;%= hidden_field_tag(:post_id, "5") %&gt;
    &lt;div&gt;
      &lt;div&gt;foo&lt;/div&gt;
      &lt;div&gt;bar&lt;/div&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>I want to use block as submit button. But Rails doesn't recognize this as submit button. </p>
  
  <p>Do anyone know how to realize this? Thanks.</p>