[英]Problems with “wrong number of arguments (2 for 1) (ArgumentError)”
I'm trying initialize my local rails server but I haven't been able to, because when I write "rails server", show me this message: 我正在尝试初始化我的本地Rails服务器,但未能完成,因为当我编写“ rails server”时,请向我显示以下消息:
=> Booting WEBrick
=> Rails 3.0.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/
activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require': wrong number of arguments (2 for 1) (ArgumentError)
from /home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/
activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require'
from /home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/
activesupport-3.0.3/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/
activesupport-3.0.3/lib/active_support/dependencies.rb:596:in
`new_constants_in'
from /home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/
activesupport-3.0.3/lib/active_support/dependencies.rb:225:in
`load_dependency'
from /home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/
activesupport-3.0.3/lib/active_support/dependencies.rb:239:in
`require'
from /home/distriker/Documentos/public_html/auth/config.ru:6
from /home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/
rack-1.2.3/lib/rack/builder.rb:46:in `instance_eval'
from /home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/
rack-1.2.3/lib/rack/builder.rb:46:in `initialize'
from /home/distriker/Documentos/public_html/auth/config.ru:1:in `new'
from /home/distriker/Documentos/public_html/auth/config.ru:1
Regards, Iván 问候,伊万
That appears to be a bug in "/home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/ activesupport-3.0.3/lib/active_support/dependencies.rb" line 239. It's calling: 这似乎是“ /home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb”第239行中的错误。它在调用:
require 'one/thing', 'another/thing'
It's possible that something in your config is causing it to do this. 配置中的某些内容可能导致它执行此操作。
[Off-topic] English help :) [离题]英文帮助:)
Hopefully you don't mind. 希望你不介意。 [/Off-topic]
[/无关]
EDIT | 编辑| I'd probably check this line first: "/home/distriker/Documentos/public_html/auth/config.ru:6"
我可能会首先检查以下行:“ /home/distriker/Documentos/public_html/auth/config.ru:6”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.