第一个程序出错了.高手帮看看

第一个程序出错了.高手帮看看

我是按照Agile_Web_Development_With_Rails-2nd.pdf 这本书一步步来的
代码也一样用命令生成几个代码.
修改say_controller.rb
class SayController < ApplicationController
def hello
end
end

在views/say中添加hello.rthml
内容为
<html>
<head>
<title>Hello, Rails!</title>
</head>
<body>
<h1>Hello from Rails!</h1>
</body>
</html>

地址输入http://127.0.0.1:3000/say/hello


Routing Error

No route matches "/say/hello" with {:method=>:get}

这个错误

首页http://127.0.0.1:3000能显示出来
奇怪,一样的设置,我这里就可以的。。。lz能把具体的顺序写出来么?
估计是没有配制路由吧,在route.rb里看看有没有默认的路由规则。
route.rb里是这样的.我没动过.新手看不懂
ActionController::Routing::Routes.draw do |map|
 # The priority is based upon order of creation: first created -> highest priority.

 # Sample of regular route:
 # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
 # Keep in mind you can assign values other than :controller and :action

 # Sample of named route:
 # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
 # This route can be invoked with purchase_url(:id => product.id)

 # Sample resource route (maps HTTP verbs to controller actions automatically):
 # map.resources :products

 # Sample resource route with options:
 # map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }

 # Sample resource route with sub-resources:
 # map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller

 # Sample resource route within a namespace:
 # map.namespace :admin do |admin|
 #  # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
 #  admin.resources :products
 # end

 # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
 # map.root :controller => "welcome"

 # See how all your routes lay out with "rake routes"

 # Install the default routes as the lowest priority.
 map.connect ':controller/:action/:id'
 map.connect ':controller/:action/:id.:format'
end
是不是版本问题
我的ruby是ruby186-26_rc2.exe
rails是2.0.1
就是版本的问题了,建议你用gem uninstall rails命令卸载rails的2.0.1,重新安装,选择1.26版!
我也是第一个Hello world 例子卡住了。我用的是InstantRails1.7.一运行就说网页无法打开。
http://localhost:3000可以运行

问题找到了~~~~~