rails上的版本控制acts_as_versioned,请安装plugin版本,gem版本会导致问题,会导致ActiveRecord找不到写入的属性的列表
报错信息如下:
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.include?
/vendor/rails/activerecord/lib/active_record/dirty.rb:126:in
`write_attribute'
安装方法:
- 先安装git,安装方法如下:sudo apt-get install git git-core
- script/plugin install git://github.com/technoweenie/acts_as_versioned.git