It seems like some people here had this problem but I couldn\'t find any solution in another topic.
I am doing Chapter 3 of the Ruby on Rails-Tutorial, working on the sta
check your http:// address, specifically if you are on localhost:3000/path or localhost:3000/path1/path2, etc
Once you change the format of your mapping from get
to match
you will not need static_pages anymore, just go straight to localhost:3000/pagename
e.g localhost:3000/about
Try this :
match "/static_pages/home" => "static_pages#home", :via => :get
match "/static_pages/help" => "static_pages#help", :via => :get
match "/static_pages/about" => "static_pages#about", :via => :get
Add into routes , restart the server and refresh browser .