Rails 3 Tutorial Chapter 11 “Validation failed: Email has already been taken” error

后端 未结 5 1338
伪装坚强ぢ
伪装坚强ぢ 2020-12-09 05:59

My trouble arose in Chapter 11 of the Ruby on Rails Tutorial here.

I was seeing this rspec error:

Failure/Error: :user => Factory(:user, :email =&         


        
5条回答
  •  暖寄归人
    2020-12-09 06:32

    This works for me:

    bundle exec rake db:test:prepare

    It's also in the tutorial.

提交回复
热议问题