def password_errors errors password map Password end

1
2
3
def password_errors
[*errors[:password].map{|e| "Password #{e}"}]*"."
end