机架应用程序错误:#<argumenterror:wrong =“”number =“”of =“”arguments =“”(given =“”2,=“”expected =“”0“=”“

时间:2018-04-30 15:21:57

标签: ruby-on-rails cmder

=”“

我正在尝试使用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)>

请帮助我。

1 个答案:

答案 0 :(得分:0)

我找到了解决自己问题的方法。我的Ruby版本是2.5.1,根据我的理解,这还不是一个稳定的版本。

我只是通过再次安装Rubyinstaller来降级Ruby版本。版本现在是2.3.3,应用程序运行正常。