The revision history feature in Google Docs is pretty useful. With the ability to intuitively see how versions differ from each other and restore old versions in a couple of clicks, it’s a big enabler of collaborative work.
The legacy apps we’re used to replacing might include a rudimentary edit history (item was edited at X time by Y user) but nothing that meets modern raised expectations.
Here, we’ll explore how to add a feature like this to a service directory app built in Rails. Doing the hard work to make this simple for users can enable more collaborative ways of working.
- the model changes needed to capture and restore edits
- the routes, controllers and views to make an interface for users to review
- possible extra enhancements