路径怎么 不对 了

msdla 2009-10-17 01:11:57
=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2009-10-17 13:02:50] INFO WEBrick 1.3.1
[2009-10-17 13:02:50] INFO ruby 1.8.7 (2008-08-11) [i486-linux]
[2009-10-17 13:02:55] INFO WEBrick::HTTPServer#start: pid=4373 port=3000


Processing ApplicationController#index (for 127.0.0.1 at 2009-10-17 13:03:05) [GET]

ActionController::RoutingError (No route matches "/first" with {:method=>:get}):
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'

Rendering rescues/layout (not_found)
^C^C[2009-10-17 13:03:11] INFO going to shutdown ...
[2009-10-17 13:03:11] INFO WEBrick::HTTPServer#start done.
Exiting
...全文
64 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaodeshi 2009-10-30
  • 打赏
  • 举报
回复
config/routes.rb 里面的路径和你的controller没有对上.需要看一下.没有first这个controller
sevk 2009-10-29
  • 打赏
  • 举报
回复
gem update --system 全部更新一下看

2,763

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ruby/Rails
社区管理员
  • Ruby/Rails社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧