--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Generates a HTML delete button.
- !ruby/struct:SM::Flow::P 
  body: If an object is passed as first parameter, Merb will try to use the resource url for the object If the object doesn't have a resource view, pass a url
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "object_or_url<Object> or <String>:"
    body: Object to delete or URL to send the request to
  - !ruby/struct:SM::Flow::LI 
    label: "contents<String>:"
    body: HTML contained within the button tag
  - !ruby/struct:SM::Flow::LI 
    label: "attrs<Hash>:"
    body: HTML attributes
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Returns
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "String:"
    body: HTML
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Example
- !ruby/struct:SM::Flow::VERB 
  body: "  &lt;%= delete_button @article, &quot;Delete article now&quot;, :class =&gt; 'delete-btn' %&gt;\n  &lt;%= delete_button url(:article, @article)%&gt;\n"
full_name: Merb::Helpers::Form#delete_button
is_singleton: false
name: delete_button
params: (object_or_url, contents="Delete", attrs = {})
visibility: public
