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

前端 未结 7 1608
长情又很酷
长情又很酷 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 06:08

    In your Gemfile, change the rspec-rails line to: gem 'rspec-rails', '2.12.0'

    This version of rspec supports the approach Hartl is using at that point in the book.

    0 讨论(0)
提交回复
热议问题