You should understand the intention of separating delete and destroy.

The analogy is: delete is to destroy what edit is to update. You can
completely ignore delete and use destroy if you don't like the idea of
having a separate "Will you delete this?" page, but make sure not to
confuse the two.

If you want to conform to REST, you should not delete from the DB via
a GET request anyway.

If you don't care about REST, however, you can just do this in your
controller:

  def delete(id)
    Model.find(id).destroy
    "You destroyed Model #{id}"
  end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to