簡體   English   中英

機架應用錯誤:#

[英]Rack app error: #<ArgumentError: wrong number of arguments (given 2, expected 0)

我正在嘗試使用Cmder CLI在Windows 10上運行Rails應用程序。 啟動Rails服務器時遇到錯誤。

C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.0.0/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.0.0/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated
=> Booting Puma
=> Rails 5.0.0 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/activesupport-5.0.0/lib/active_support/core_ext/numeric/conversions.rb:138: warning: constant ::Fixnum is deprecated
*SIGUSR2 not implemented, signal based restart unavailable!
*SIGUSR1 not implemented, signal based restart unavailable!
*SIGHUP not implemented, signal based logs reopening unavailable!
Puma starting in single mode...
* Version 3.4.0 (ruby 2.5.1-p57), codename: Owl Bowl Brawl
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://localhost:3000
Use Ctrl-C to stop 2018-04-27 23:07:32 -0400: Rack app error: ArgumentError: wrong number of arguments (given 2, expected 0)>

請幫我。

我找到了解決自己問題的方法。 根據我的理解,我的Ruby版本是2.5.1,但這還不是一個穩定的版本。

我只是通過再次安裝Rubyinstaller降級了Ruby版本。 現在的版本是2.3.3,並且應用程序運行良好。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM