【发布时间】:2014-11-08 10:30:57
【问题描述】:
当尝试使用 ruby run.rb 运行我的 twitter_ebooks 机器人时,我收到此错误:
Faraday::Builder is now Faraday::RackBuilder.
/Users/Rafi/Desktop/my_ebooks/bots.rb:14:in `<top (required)>': undefined method `“raf_ebooks' for main:Object (NoMethodError)
from run.rb:33:in `require_relative'
from run.rb:33:in `<main>'
这是我正在使用的机器人的 git repo,如果有帮助的话:https://github.com/mispy/twitter_ebooks
这是 bots.rb 文件中的内容(为了安全起见,我删除了身份验证令牌和使用者密钥等):http://pastebin.com/gYqcMYhM
这个错误是什么意思,我该如何解决?谢谢。
编辑:我尝试在重新启动后再次运行它得到几乎相同的错误,除了 my_ebooks/bots.rb:14 它说 my_ebooks/bots.rb:13
Faraday::Builder is now Faraday::RackBuilder.
/Users/Rafi/Desktop/my_ebooks/bots.rb:13:in `<top (required)>': undefined local variable or method `“raf_ebooks”' for main:Object (NameError)
from run.rb:33:in `require_relative'
from run.rb:33:in `<main>'
【问题讨论】:
-
你用的是什么文本编辑器?
-
@Substantial 我只是使用 TextEdit,Mac 的默认文本编辑器。
标签: ruby methods undefined nomethoderror