繁体   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