[英]rails server will not start
When I try to run my rails server, I get the following error: 当我尝试运行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'
Thank you in advance. 先感谢您。
Go to config/environments/development.rb 转到config / environments / development.rb
Set config.eager_load = true 设置config.eager_load = true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.