Can somebody explain the diff btw delete and destroy in rails with examples?
article.destroy
(0.2ms) begin transaction
SQL (0.4ms) DELETE FROM "articles" WHERE "articles"."id" = ? [["id", 9]]
(84.5ms) commit transaction=> #
article.delete
SQL (28.3ms) DELETE FROM "articles" WHERE "articles"."id" = 10
=> #
basically both do the same task but I couldn't figure out the rollback part.How can I rollback in destroy and not in delete. Kindly take the burden of explaining it to me?