0

I am following along with the sample_app everything runs create and all specs pass until I get to 6.26. As soon as I add the has_secure_password to the User class I receive a Ruby interpreter error that is 1899 lines long. The buffer in vim only shows up to line 600 so I can't even get to the root of the problem. I have verified that I have all of the gems with the correct version numbers. Not sure where to go from here. I am not sure where to start debugging from here. I have made sure to rake db:migrate and rake db:test:prepare. Any help in where to start debugging or direction to take would be great.

Thanks

4

2 回答 2

0

您可能错过了 bcrypt-ruby gem。

您需要将 bcrypt-ruby (~> 3.0.0) 添加到 Gemfile 以使用 has_secure_password:

gem 'bcrypt-ruby', '~> 3.0.0'

于 2013-07-20T20:21:03.577 回答
0

此错误与 Rails Tutorial 或 RSpec 无关。它最终成为在 tmux 会话中运行警卫的问题。如果我打开第二个选项卡并在标准终端中运行警卫,一切正常。

于 2013-07-29T15:08:57.520 回答