Difference between Destroy and Delete

Basically destroy runs any callbacks on the model while delete doesn’t. From the Rails API: ActiveRecord::Persistence.delete Deletes the record in the database and freezes this instance to reflect that no changes should be made (since they can’t be persisted). Returns the frozen instance. The row is simply removed with an SQL DELETE statement on the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)