History of edits of a Ruby on rails template

1

I would like to know how I can create a history with all edits made to a template, in ruby on rails.

    
asked by anonymous 25.08.2014 / 20:02

1 answer

2

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.

    
26.08.2014 / 20:38