I would like to know how I can create a history with all edits made to a template, in ruby on rails.
I would like to know how I can create a history with all edits made to a template, in ruby on rails.
There are multiple versioning gems . The best known is PaperTrail . This gem creates a table that records the history of all changes to monitored templates, and can also associate with the user who made the change.
Adding PaperTrail to your project is very simple. Just include gem 'paper_trail'
in Gemfile, create the versioning table , and add has_paper_trail
to the classes you want to version.