title: Data method :delete not working
body: <p>I have the following code:</p>
  
  <pre><code>  &lt;% @groups.each do |group| %&gt;
           &lt;button class="btn btn-danger" data-method="destroy" data-confirm="Sure?" type="button"&gt;
              &lt;i class="fa fa-trash-o"&gt;&lt;/i&gt;
           &lt;/button&gt; 
     &lt;% end %&gt;
  </code></pre>
  
  <p>And in my controller:</p>
  
  <pre><code> def destroy
     @group = Group.find(params[:id])
     respond_to do |format|  
     if @result = @group.destroy  
      format.html
      format.js        
    else  
      format.html 
      format.js
    end  
   end  
  end
  </code></pre>
  
  <p>However, it is not triggering even the confirmation.  I've looked at the API regarding UJS, as well as other posts on SO, however, I'm cannot figure out what <em>I</em> am doing wrong here.</p>
  
  <p>Any point in the right direction would be greatly appreciated. </p>