When I installed devise and performed sign-up, I got an error like this.
ArgumentError (wrong number of arguments (given 0, expected 1)):
wrong number of arguments (given 0, expected 1)
user.rb
has_secure_password
Erase. has_secure_password is a rails function that encrypts and saves the password when it is saved in the DB. It is not necessary when using devise, so comment it out.
https://qiita.com/kents1002/items/4079e3d05d322febe00e https://qiita.com/shumpeism/items/4d8946ade2dbdccab31c
Recommended Posts