サーバーブラウザを実行すると、次のようなものが表示されます。
Routing Error
No route matches [GET] "/static_pages/home"
Try running rake routes for more information on available routes.
Rake ルートは私にこれを示しています:
root / static_pages#home
help /help(.:format) static_pages#help
about /about(.:format) static_pages#about
contact /contact(.:format) static_pages#contact
私の routes.rb ファイル:
MyApp::Application.routes.draw do
root :to => 'static_pages#home'
match '/help', :to => 'static_pages#help'
match '/about', :to => 'static_pages#about'
match '/contact', :to =>'static_pages#contact'
end
誰でもアイデアを得ましたか?