acts_as_versioned is a GREAT plugin. Having trouble only versioning
specific fields however. Most of my fields will never change so it is a
waste to store the same data over and over in all the versions. The docs
say “the _versions table should contain all the fields you want
versioned”. I’ve done that – the fields that I don’t want versioned are
not in the _versions table. I get an error when I try to save though.
Any ideas?
Example:
class Picture < ActiveRecord::Base
belongs_to :style
acts_as_versioned
end
@picture = Picture.find(1) @picture.caption = ‘A new caption that should be in a new version.’ @picture.save