0

我刚刚做了一个捆绑控制并生成了 Controller :generete controller home index with "

某物

在 index.html.erb 中,我还从公共库中删除了 index.html,并将 config.rb 根更改为:"home#index" 当我尝试运行 (localhost:3000) 时,我得到了以下错误:

500内部服务器错误

如果您是本网站的管理员,请阅读此 Web 应用程序的日志文件和/或 Web 服务器的日志文件以找出问题所在。

日志文件:

Started GET "/" for 127.0.0.1 at 2011-12-28 14:31:13 +0200    
ArgumentError (wrong number of arguments(3 for 0)):

我正在使用 RubyMind 如果它的仪表。有任何想法吗?

编辑:所有错误日志:

[2011-12-28 14:44:23] 信息 WEBrick 1.3.1 [2011-12-28 14:44:23] 信息 ruby​​ 1.9.3 (2011-10-30) [i386-mingw32] [2011-12 -28 14:44:23] WARN TCPServer 错误:每个套接字地址(协议/网络地址/端口)通常只允许使用一次。- 绑定(2)从 D:/Ruby193/lib/ruby/1.9.1/webrick/utils.rb 退出 D:/Ruby193/lib/ruby/1.9.1/webrick/utils.rb:85:in initialize': Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2) (Errno::EADDRINUSE) from D:/Ruby193/lib/ruby/1.9.1/webrick/utils.rb:85:innew': 85:in block in create_listeners' from D:/Ruby193/lib/ruby/1.9.1/webrick/utils.rb:82:ineach' from D:/Ruby193/lib/ruby/1.9.1/webrick/utils.rb:82:in create_listeners' from D:/Ruby193/lib/ruby/1.9.1/webrick/server.rb:82:inlisten' from D:/Ruby193/lib/ruby/1.9.1/webrick/server.rb: 70:in initialize' from D:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:45:ininitialize' 来自 D:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/handler/webrick.rb:10:in new' from D:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/handler/webrick.rb:10:in run' 来自 D:/Ruby193/ lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/server.rb:265:in start' from D:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.2.rc2/lib/rails/commands/server.rb:70:in 从 D:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.2.rc2/lib/rails/commands.rb:54:in block in <top (required)>' from D:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.2.rc2/lib/rails/commands.rb:49:in tap' 从 D:/Ruby193/lib/ruby开始' /gems/1.9.1/gems/railties-3.1.2.rc2/lib/rails/commands.rb:49:in <top (required)>' from C:/Sites/TrekStory/script/rails:6:in require'来自 C:/Sites/TrekStory/script/rails:6:in <top (required)>' from -e:1:inload'来自 -e :1:在`'

进程以退出代码 1 结束

4

0 回答 0