Modern Rails flash messages (part 2): The undo action for deleted items

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 https://rubyonrails.ba/single/modern-rails-flash-messages-part-2-the-undo-action-for-deleted-items

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles