title: How to submit data in a modal-footer?
body: <p>The below code is not submitting <em>comment</em>:</p>
  
  <pre><code>.modal{ :id=&gt;"#{digest.policy.id}", :class=&gt;'modal hide'}
    .modal-header
      %h3
        = digest.policy.name
    .modal-body{ :style=&gt;'display: block; height:200px;'}
      .modal-form
        = form_tag '/alerts/archive', :name=&gt;"form#{digest.policy.id}", :remote=&gt;'true' do
          = hidden_field_tag 'policy_id', digest.policy.id
          = hidden_field_tag 'parent_id', id
    .modal-footer
      #div{:style=&gt;'text-align:left;'}Comment:
      = text_area_tag  'comment', '' , :cols=&gt;'85', :rows=&gt;'3'
      %a(data-toggle="modal" href="##{digest.policy.id}" class="btn" class="btn")Cancel
      %a(onclick="javascript:document.form#{digest.policy.id}.submit()" class="btn btn-primary")Archive
  </code></pre>