Routing-Fehler No route matches [GET] "/static_pages/home", tutorial

Wenn ich den server-browser zeigen mir so etwas wie dieses:

Routing Error

No route matches [GET] "/static_pages/home"

Try running rake routes for more information on available routes. 

Rake routes zeigt mir dies:

root  /                  static_pages#home
help  /help(.:format)    static_pages#help
about  /about(.:format)   static_pages#about
contact  /contact(.:format) static_pages#contact

Meiner Wege.rb-Datei:

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

Jemand ne Idee?

  • Es ist keine route für /static_pages/zu Hause (obwohl Sie Ihre home-Aktion bei / ). Was hast du erwartet?
InformationsquelleAutor szatan | 2012-07-29
Schreibe einen Kommentar