简体   繁体   English

Rails控制台加载错误

[英]rails console load error

I get the following error when trying to run 尝试运行时出现以下错误

rails c

I get the following load error: 我收到以下加载错误:

$ rails c
Running via Spring preloader in process 12401
Loading development environment (Rails 5.1.4)
load error: /Users/andrejfidel/Documents/project_2/.irbrc
NoMethodError: undefined method `reject!' for nil:NilClass
Traceback (most recent call last):
/Users/andrejfidel/.rbenv/versions/2.4.0-
dev/lib/ruby/gems/2.5.0/gems/spring-
2.0.2/lib/spring/application.rb:171:in `fork': undefined method 
`reject!' for nil:NilClass (NoMethodError)

Any help would be greatly appreciated! 任何帮助将不胜感激!

You have project_2/.irbrc , which is an irb console config file, that is either taken from the other project, or just invalid. 您有project_2/.irbrc ,这是一个irb控制台配置文件,它是从另一个项目获取的,或者只是无效的。

Simply remove it and you are all set. 只需将其删除即可。 You might try to tweak it, but at that level of ruby knowledge I would advise to remove it. 您可能会尝试对其进行调整,但是在红宝石知识的水平上,我建议您将其删除。

It is irrelevant to the project itself. 它与项目本身无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM