简体   繁体   English

“参数数量错误(2为1)(ArgumentError)”的问题

[英]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 :) [离题]英文帮助:)

  1. "I haven't can" => "I haven't been able to" “我没办法” =>“我没办法”
  2. "Rewards, Iván" => "Regards, Iván" “奖励,伊万” =>“问候,伊万”

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.

相关问题 ArgumentError(错误的参数数量(2为1))-RoR应用程序的“查找”和“创建” - ArgumentError (wrong number of arguments (2 for 1)) - `find' and `create' for RoR app Sinatra:参数数量错误(0..2为4) - Sinatra: wrong number of arguments (4 for 0..2) Ruby MySQL错误的参数数量 - ruby mysql wrong number of arguments ProgrammingError:字符串格式化过程中的参数数量错误 - ProgrammingError: Wrong number of arguments during string formatting Rake不会回滚迁移,参数数量错误(1代表0) - Rake won't rollback migrations, wrong number of arguments (1 for 0) 编程错误:字符串格式化期间的参数数量错误,尝试过元组修复 - ProgrammingError: Wrong number of arguments during string formatting, tried tuple fix Angular,Flask,mysql.connector编程错误:参数数量错误 - Angular, Flask, mysql.connector ProgrammingError: Wrong number of arguments 在ruby中连接到mysql会产生错误数量的参数错误(4之0)-如何调试? - Connecting to mysql in ruby produces wrong number of arguments error (4 of 0) - how to debug? mysql.connector.errors.ProgrammingError:字符串格式化期间参数数量错误 - mysql.connector.errors.ProgrammingError: Wrong number of arguments during string formatting 无法将Scrapy项目用作MySQL.execute的数据:“字符串格式化期间参数数量错误” - Unable to use Scrapy item as data for MySQL.execute: “Wrong number of arguments during string formatting”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM