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.
class Picture < ActiveRecord::Base
@picture = Picture.find(1)
@picture.caption = ‘A new caption that should be in a new version.’
Then I get: NoMethodError: undefined method `style_id=’ for
style_id will never change though (or I don’t care if its changes are
versioned) so I did not include it in the picture_versions table.
Thanks very much.