当我尝试运行我的rails服务器时,出现以下错误:
/Users/yedidyaweiner/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activerecord- 4.1.1/lib/active_record/associations/builder/association.rb:63:in `initialize': undefined method `arity' for :versions:Symbol (NoMethodError)
from /Users/yedidyaweiner/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/activerecord-4.1.1/lib/active_record/associations/builder/collection_association.rb:18:in `initialize'
提前谢谢。
答案 0 :(得分:0)
转到config / environments / development.rb
设置config.eager_load = true