2011-06-17 151 views
1

問題我試圖初始化我的本地導軌服務器,但我沒有能夠,因爲當我編寫「rails server」時,讓我看看這個消息:「參數數量錯誤(1爲1)(ArgumentError)」

=> 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 

問候,伊萬

回答

1

這似乎是在「/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' 

配置中的某些東西可能導致它執行此操作。

[題外話] 英語幫助:)

  1. 「我沒有能」=> 「我一直沒能」
  2. 「獎勵,伊萬」=>「的問候,Iván「

希望你不介意。 [/題外]

編輯|我可能會首先檢查這一行:「/home/distriker/Documentos/public_html/auth/config.ru:6」

+0

好的,謝謝。我發現我的錯誤。錯誤是,在config.ru中,稱爲「rake」的行有兩個參數。那是因爲我過去嘗試了不同的東西> __ <。那麼,也謝謝你的英語改正,我會盡量記住你的建議。我是西班牙人,非常感謝。 – Ivanhercaz

+1

:)很高興你有它的工作。 Estoy seguro de que tu ingingéses mucho mejor que mi castellano! – d11wtq

相關問題