# Update\_attributes() Error

**URL:** <https://www.ruby-forum.com/t/update-attributes-error/133422>\
**Category:** Rails\
**Created:** [March 31, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/update-attributes-error/133422 "2008-03-31T14:12:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [March 31, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/update-attributes-error/133422/1 "2008-03-31T14:12:56Z")

</div>

Follow the book Agile Web D. with Rails, copy the depot’s Model  
User.

And my Users table has another two fields, address and email.

When I tried to update these two fields, the code like

user = User.find(1)  
user.update\_attributes!(:address =\> “abc”, :email =\> “removed\_email\_address@domain.invalid”)

then gave me an error: Validation failed: Password can’t be blank

but I don’t wanna update the password, how can I solve the problem?  
Thanks!
