acts_as_versioned插件问题及解决

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'

 

详情请看 http://groups.google.co.jp/group/rubyonrails-talk/browse_thread/thread/1e4cb2c01e346a26/f870674a3d3c1fcb#f870674a3d3c1fcb  

 

安装方法:

  1. 先安装git,安装方法如下:sudo apt-get install git git-core
  2. script/plugin install git://github.com/technoweenie/acts_as_versioned.git

你可能感兴趣的:(thread,git,Google,Rails,ActiveRecord)