title: How to add second button to Rails (simple) form_for in edit view to delete instance?
body: <p>Environment is Ruby 2.0.0, Rails 4.1, Windows 8.1, Simple_Form, Devise, CanCan, Rolify.  The Devise "User" model was created as "Device".</p>
  
  <p>I have a working simple_form_for form that allows me to perform updates on the device instance.  I am trying to add a second button to delete the instance instead.  It displays fine, and even the html input tag looks reasonable, but it seems to ignore any permutation given to the action and method variables and always go to devices#update.</p>
  
  <p>Is it possible to do this within the edit view form?  The alternative, I guess, is to update routes.rb to go to devices#delegate and determine there whether to transfer control to the update or destroy method.  I should probably just do that, but it seems like this option should work especially given that the input tag is being formatted reasonably.  It just seems to be ignored.</p>
  
  <p>I've tried many variations of the action/method combinations.  As I said, the input tag is formatted as I would expect but is just ignored.  That is frustrating.  I'd rather it throw an exception than just ignore me...</p>
  
  <p>The form code is as follows:</p>
  
  <pre><code>&lt;%= simple_form_for @device,
                      defaults: {label: false},
                      html: {class: 'form-vertical'},
                      wrapper: :vertical_form,
                      wrapper_mappings: {
                              check_boxes: :vertical_radio_and_checkboxes,
                              radio_buttons: :vertical_radio_and_checkboxes,
                              file: :vertical_file_input,
                              boolean: :vertical_boolean
                      } do |f| %&gt;
      &lt;%= f.input :name, disabled: true, label: "Device name is:", required: false %&gt;
      &lt;%= f.collection_check_boxes(:role_ids, Role.where(name: "admin"), :id, :name) do |b|
        b.label(:"data-value" =&gt; b.value) { b.check_box + " Administrator?" }
      end %&gt;
      &lt;%= f.input :chg_pwd, as: :boolean,
                  checked_value: true, unchecked_value: false,
                  inline_label: "Generate new password?" %&gt;
      &lt;%= f.button(:submit, {class: 'btn btn-primary'}) %&gt;
      &lt;%= f.button(:submit, {value: "Delete Device", class: 'btn btn-primary', action: '/devices', method: 'delete'}) %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>I'd provide the HTML input tag but, as I said, I've tried so many options and they seem to be formatted correctly... </p>