×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

What is the difference between destroy and delete in Ruby on Rails?

28. What is the difference between destroy and delete?

  1. Delete runs any callbacks on the model while Destroy doesn't.
  2. Destroy runs any callbacks on the model while Delete doesn't.

Answer: B) Destroy runs any callbacks on the model while Delete doesn't.

Explanation:

Destroy and delete differ in a certain that destroy executes any callbacks on the model while delete does not.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.