Questions tagged [vestal-versions]

vestal_versions adds versioning support to an ActiveRecord model. With vestal_versions, models can be reverted back to a previous revision, even to a particular date and time.

vestal_versions adds versioning support to an ActiveRecord model. It's built as a second-generation improvement upon acts_as_versioned. With vestal_versions, models can be reverted back to a previous revision, even to a particular date and time. It can be found at https://github.com/laserlemon/vestal_versions.

27 questions
17
votes
6 answers

Versioning of Models in Ruby on Rails

I'm looking for a plugin/act to allow versioning of my models. It's kind of difficult to find a list of the available solutions. So far I gathered: acts_as_versioned simply_versioned vestal_versions The last two solutions only require a single…
7
votes
2 answers

Rails 3.2 app - Should I use a versioning gem (paper_trail or vestal_versions) or handle it manually?

My question: Should I roll my own model versioning or use one of the versioning gems that's already out there? If I should use a gem, which one seems best for this application? Info about my app My app is a simple Checklist app. There are Checklists…
4
votes
1 answer

Active Record audit history

We are planning to make some of the tables audit enabled in our Rails3 application. We did look at paper_trail and it seems to store all the versions, but I wasn't sure if there was a mechanism to find the difference b/w what field changed within…
priya
  • 24,861
  • 26
  • 62
  • 81
4
votes
2 answers

Versioned associations using vestal_versions?

I'd like to be sure if vestal_versions does support versioned associations (it seems like it doesn't) before switching out to another versioning gem that can support versioned associations e.g => has_versioning. I haven't looked at the code yet but…
jpemberthy
  • 7,473
  • 8
  • 44
  • 52
3
votes
0 answers

Rails 3.0.3: using vestal_versions with globalize3

I am trying to add vestal_versions (1.2.2) to a site that uses globalize3 (0.0.11) for localization of the Models. When I try to display the Version of a Model like this: <% if can?(:edit, Page) then %>
Florian
  • 31
  • 2
3
votes
1 answer

rails wiki site - article edit highlighting/strikethrough with htmldiff maxes cpu

I'm implementing a wiki style site and want to highlight changes made to articles between successive versions. Using htmldiff to highlight changes works great, except it is rather cpu intensive. I'm using the awesome vestal_versions plugin for…
mark
  • 10,316
  • 6
  • 37
  • 58
2
votes
1 answer

Vestal Versions changes_between not working for me

I was expecting it to be the union of all changes between 2 versions. (using vestal versions 1.0.2) ruby-1.8.7-p174 > contact.version => 12 ruby-1.8.7-p174 > contact.latest_approved_version => 8 ruby-1.8.7-p174 > contact.changes => {}…
Joelio
  • 4,621
  • 6
  • 44
  • 80
2
votes
1 answer

Vestal Versions - Rails 3 Support?

I'm real interested in using Vestal Versions with Rails 3. Does anyone know if Rails 3 works with Vestal Versions? I've heard some users are running into issue: ActiveRecord::DangerousAttributeError: changes is defined by ActiveRecord" It uses a…
AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012
2
votes
1 answer

How can I get vestal_versions to store the user who changed the record?

I'm using vestal_versions 1.0.2 and rails 2.3.8 I'm trying to associate a user with changes made to models as shown in the the documentation: @user.update_attributes(:last_name => "Jobs", :updated_by => "Tyler") @user.versions.last.user # =>…
Justin Tanner
  • 14,062
  • 17
  • 82
  • 103
1
vote
1 answer

how to insert user_id,user_name,user_type with vestal versions?

how to insert user_id,user_name,user_type with vestal versions into the versions table ? class Page < ActiveRecord::Base versioned end
krunal shah
  • 16,089
  • 25
  • 97
  • 143
1
vote
1 answer

vestal_versions

I was watching railscasts episode 177, as I need to implement some versioning in my app. But this episode was not done in Rails 3. So i went to the site of the gem itself. https://github.com/laserlemon/vestal_versions Now, it says it was tested…
Lievcin
  • 938
  • 3
  • 18
  • 30
1
vote
1 answer

Paperclip versioning files with vestal_versions

I have it set up right now to save Images to my rails filesystem and keep the old version of the file in a path like /images/:id/:version/:filename How do I use vestal_versions to get the url of the old file path? Using .revert_to!(1) increments the…
maletor
  • 7,072
  • 7
  • 42
  • 63
1
vote
1 answer

vestal_versions and htmldiff question of reversion

I'm guessing there's probably an easier way to do what I'm doing so that the code is less unwieldy. I had trouble understanding how to use the revert_to method... i wanted something where i could call up two different versions at the same time, but…
holden
  • 13,471
  • 22
  • 98
  • 160
1
vote
1 answer

vestal_versions increments version in Rails Console but not through UI

I have added versioned to my Post model. If I do, for example: 1.9.3-p448 :040 >p = Post.first 1.9.3-p448 :041 > p.version => 1 Then I update the post through our website's UI. I watch the server logs, the changes are saved. Back on the…
1
vote
1 answer

Vestal_versions and acts_as_taggable_on

Does anybody successfully integrated vestal versions and acts_as_taggable_on plugins? I've added to my app, that using acts_as_taggable_on following line to environment.rb config.gem 'vestal_versions' and on any rake task or generator script call…
Alexey Poimtsev
  • 2,845
  • 3
  • 35
  • 63
1
2