adspace


what is the difference between destroy and delete?

Answer Posted / Sonia Verma

In Rails, 'delete' is an HTTP verb used in RESTful applications to remove a resource. When you call 'destroy' on an ActiveRecord model, it calls the 'delete' action of its corresponding controller, which typically performs actions like setting the object as deleted and soft-deleting or hard-deleting the record from the database.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current version of ruby on rails?

949