I’m completely baffled with Exercise 3 in Chapter 7 of Hartl’s Ruby on Rails tutorial. My question is, why do we have to get rid of presence: true in order to prevent error duplication. Don’t we need that password exists? Or is this one of those things where has_secure_password handles this?
I’m completely baffled with Exercise 3 in Chapter 7 of Hartl’s Ruby on Rails
Share
Validationsfor presence of password, confirmation of password (using a “password_confirmation” attribute) are automatically added. You can see API of has_secure_password.