Version history for models

75 views
Skip to first unread message

Grant McLean

unread,
Feb 7, 2012, 10:28:18 PM2/7/12
to wellr...@googlegroups.com
Hi Railers

I'd like to track a history of updates to records in selected tables.
The aim is to provide an audit trail of who changed what and possibly
the ability to revert selected changes.

A bit of googling brought me to the "Vestal Versions" plugin:

https://github.com/laserlemon/vestal_versions

Does anyone have any experience with this or other related plugins?
Good bad or otherwise.

It looks like I'm going to have to do a Rails upgrade before I take
anything for a test drive.

Cheers
Grant

Nahum Wild

unread,
Feb 7, 2012, 10:38:52 PM2/7/12
to wellr...@googlegroups.com
There is also this:

https://github.com/collectiveidea/acts_as_audited

Which I've never used :-)

--nahum

Grant

--
You received this message because you are subscribed to the Google Groups "WellRailed" group.
To post to this group, send email to wellr...@googlegroups.com.
To unsubscribe from this group, send email to wellrailed+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wellrailed?hl=en.


Warren Seen

unread,
Feb 7, 2012, 10:39:10 PM2/7/12
to wellr...@googlegroups.com
We've used paper trail at codefire and found it to be simple and reliable for our needs: https://github.com/airblade/paper_trail

Henry Collingridge

unread,
Feb 7, 2012, 10:44:17 PM2/7/12
to wellr...@googlegroups.com
We've used acts_as_audited and it did what it says on the tin.

Cameron Prebble

unread,
Feb 7, 2012, 10:45:03 PM2/7/12
to wellr...@googlegroups.com
+1 on Paper trail 

You might also find this page helpful
Grant

--
You received this message because you are subscribed to the Google Groups "WellRailed" group.
To post to this group, send email to wellr...@googlegroups.com.
To unsubscribe from this group, send email to wellrailed+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wellrailed?hl=en.




--
Cameron Prebble

Phone: 021 174 1296

Shane Mingins

unread,
Feb 7, 2012, 10:46:42 PM2/7/12
to wellr...@googlegroups.com
I have on two projects and it's been ok.  The main worked needed was in presenting the information back to the users in a nice way.
--
Shane Mingins

Nahum Wild

unread,
Feb 7, 2012, 10:48:12 PM2/7/12
to wellr...@googlegroups.com
good to know it's worked fine. presentation of the audit data is always gonna be a problem...

--nahum

Darryl Hamilton

unread,
Feb 7, 2012, 10:37:23 PM2/7/12
to wellr...@googlegroups.com
Hi Grant

Paper Trail (https://github.com/airblade/paper_trail) is another option for tracking update history.

I've only used both to a small extent, so I can't really offer much advice on suitability.

Darryl

On Wed, Feb 8, 2012 at 4:28 PM, Grant McLean <gr...@catalyst.net.nz> wrote:
Grant

Gordon King

unread,
Feb 8, 2012, 12:19:45 AM2/8/12
to wellr...@googlegroups.com
+1 for paper trail. I trialled vestal versions and paper trail and found it clean and simple. Saves the whole record and not just the diff like vestal. Rails 3 gem gives you some nice methods for getting at the diffs.

I recommend htmldiff gem for iterating the object versions and displaying the audit trail.

Gordon King

unread,
Feb 8, 2012, 12:20:48 AM2/8/12
to wellr...@googlegroups.com

Gordon King

unread,
Feb 8, 2012, 12:22:58 AM2/8/12
to wellr...@googlegroups.com
Oh and avoid the active record diff method suggested for paper trail. It breaks in rails 3.2
Reply all
Reply to author
Forward
0 new messages