Topic: What's the difference between delete and destroy

The document shows the difference is w or w/o instantiating the object.
What is the meaning of instantiating?
Could anyone give an example?

Re: What's the difference between delete and destroy

Basically "delete" sends a query directly to the database to delete the record. In that case Rails doesn't know what attributes are in the record it is deleteing nor if there are any callbacks (such as before_destroy).

The "destroy" method takes the passed id, fetches the model from the database using the "find" method, then calls destroy on that. This means the callbacks are triggered.

You would want to use "delete" if you don't want the callbacks to be triggered or you want better performance. Otherwise (and most of the time) you will want to use "destroy".

Railscasts - Free Ruby on Rails Screencasts