Routing Error No route matches [GET] “/static_pages/home”, tutorial

后端 未结 7 1724
挽巷
挽巷 2021-01-06 04:10

When I run server browser show me something like this:

Routing Error

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

Try running rake routes for more informa         


        
7条回答
  •  鱼传尺愫
    2021-01-06 04:17

    step 5.3.3 Rails tutorial

    You don't have to refresh your page

    http://localhost:3000/static_pages/home
    

    but only change the URL by

    http://localhost:3000/
    

    because you define 'static_pages/home' as root '/'.

    For me it works

提交回复
热议问题