Mysql “问题”;参数数量错误(2对1)(ArgumentError)“;
我正在尝试初始化本地rails服务器,但无法, 因为当我写“rails服务器”时,向我显示以下消息:Mysql “问题”;参数数量错误(2对1)(ArgumentError)“;,mysql,ruby-on-rails,ruby,Mysql,Ruby On Rails,Ruby,我正在尝试初始化本地rails服务器,但无法, 因为当我写“rails服务器”时,向我显示以下消息: => 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
=> 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
关于这一点,在“/home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/dependencies.rb”第239行中,似乎是一个bug。电话是:
require 'one/thing', 'another/thing'
很可能是配置中的某些内容导致它这样做
[主题外]
中文帮助:)
编辑|我可能会先检查这一行:“/home/distriker/Documentos/public_html/auth/config.ru:6”这似乎是“/home/distriker/Documentos/public_html/auth/mysql2/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/dependenciences.rb”第239行中的一个bug。电话是:
require 'one/thing', 'another/thing'
很可能是配置中的某些内容导致它这样做
[主题外]
中文帮助:)
编辑|我可能会先检查这一行:“/home/distriker/Documentos/public_html/auth/config.ru:6”好的,谢谢。我发现了我的错误。错误在于,在config.ru中,调用“rake”的行有两个参数。那是因为我在过去尝试过不同的事情,很高兴你成功了。我希望你能在我的城堡里找到我!好的,谢谢。我发现了我的错误。错误在于,在config.ru中,调用“rake”的行有两个参数。那是因为我在过去尝试过不同的事情,很高兴你成功了。我希望你能在我的城堡里找到我!