在尝试查找特定记录时,我正在尝试以下错误,我也使用了serialize :value
2.0.0-p598 :003 > Model.find(123)
from /home/linux3/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/psych.rb:205:in `parse'
from /home/linux3/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
from /home/linux3/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/psych.rb:153:in `parse'
from /home/linux3/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/psych.rb:129:in `load'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/activerecord-4.1.9/lib/active_record/coders/yaml_column.rb:26:in `load'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/activerecord-4.1.9/lib/active_record/attribute_methods/serialization.rb:105:in `unserialize'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/activerecord-4.1.9/lib/active_record/attribute_methods/serialization.rb:96:in `unserialized_value'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/activerecord-4.1.9/lib/active_record/attribute_methods/serialization.rb:79:in `type_cast'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/activerecord-4.1.9/lib/active_record/attribute_methods/read.rb:128:in `block in read_attribute'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/activerecord-4.1.9/lib/active_record/attribute_methods/read.rb:111:in `fetch'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/activerecord-4.1.9/lib/active_record/attribute_methods/read.rb:111:in `read_attribute'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/activerecord-4.1.9/lib/active_record/attribute_methods.rb:314:in `attribute_for_inspect'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/activerecord-4.1.9/lib/active_record/core.rb:357:in `block in inspect'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/activerecord-4.1.9/lib/active_record/core.rb:355:in `collect'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/activerecord-4.1.9/lib/active_record/core.rb:355:in `inspect'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/railties-4.1.9/lib/rails/commands/console.rb:90:in `start'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/railties-4.1.9/lib/rails/commands/console.rb:9:in `start'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:69:in `console'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /home/linux3/.rvm/gems/ruby-2.0.0-p598@tod/gems/railties-4.1.9/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:8:in `require'