undefined local variable or method `root_path' Hartl's Tutorial Chapter 5.3.2

前端 未结 7 1677
长情又很酷
长情又很酷 2021-01-04 05:12

So my first question on Stackoverflow..... =]

My tests in Chapter 5.3.2 of Michael Hartl\'s RoR Tutorial are all failing, when the tutorial says it should be passing

7条回答
  •  渐次进展
    2021-01-04 05:59

    I have same problem in this chapter, just change in config/routes.rb root to: 'static_pages#home' to root :to => 'static_pages#home' and it's start work. you can also check all routes with rake routes.

提交回复
热议问题