railstutorial.org, Chapter 6. unknown attribute: password

后端 未结 6 765
感动是毒
感动是毒 2021-01-05 14:11

I have finished Chapter 6 of railstutorial but all my User model specs have started failing soon after I added password & password_confirmation

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-05 14:49

    I just had the same problem. I was doing this on Cloud9.

    I noticed that my tests weren't all running either.

    Refreshing my file tree fixed both these problems.

    I didn't need to put :password or :password_confirmation directly in the model (or making any coding changes at all from the tutorial.

提交回复
热议问题