Modern Rails flash messages (part 2): The undo action for deleted items
24-Sep-2020 1524
For my needs (and for this article) I chose to use the soft-delete method.This solution using a mechanism to mark a record as deleted instead of deleting it. The application is then set up to display only records without the mark (like active only records).As a short-term solution, it is quite easy and quick. For the long-term, you need to take care of soft-deleted records, which could take a lot of space in your database.In our case, we will have these documents marked only for a few seconds before the hard deletion. So we are safe.
Modern Rails flash messages (part 2): The undo action for deleted items #ruby #rubydeveloper #rubyonrails #Modern #Rails #flash #messages #(part #action #deleted #items https://rubyonrails.ba/link/modern-rails-flash-messages-part-2-the-undo-action-for-deleted-items