# Update\_attributes

**URL:** <https://www.ruby-forum.com/t/update-attributes/49595>\
**Category:** Rails\
**Created:** [November 22, 2005, 9:03pm UTC](https://www.ruby-forum.com/t/update-attributes/49595 "2005-11-22T21:03:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc.Love](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@Marc.Love](https://www.ruby-forum.com/u/Marc.Love)\
**Post date:** [November 22, 2005, 9:03pm UTC](https://www.ruby-forum.com/t/update-attributes/49595/1 "2005-11-22T21:03:57Z")

</div>

Is there a way to find out why an update\_attributes command returned  
false? After upgrade to 0.14.3, one of my update\_attributes commands is  
no longer working, but I don’t know of any way to find out why.

Marc  
==================DISCLAIMER================================  
This email may contain confidential and privileged material for the sole  
use of the intended recipient.  
Any review or distribution by others is strictly prohibited. If you are  
not the intended recipient, please contact the sender and delete all  
copies of it from your system.  
The sender accepts no responsibility for viruses and it is your  
responsibility to scan attachments (if any).  
No contracts may be concluded on behalf of the sender by means of email  
communications unless expressly stated to the contrary.  
==================DISCLAIMER================================

---

<div class="post-metadata">

**Author:** ![Marc.Love](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@Marc.Love](https://www.ruby-forum.com/u/Marc.Love)\
**Post date:** [November 22, 2005, 9:20pm UTC](https://www.ruby-forum.com/t/update-attributes/49595/2 "2005-11-22T21:20:08Z")

</div>

On 22.11.2005, at 22.01, Marc L. wrote:

> Is there a way to find out why an update\_attributes command returned  
> false? After upgrade to 0.14.3, one of my update\_attributes  
> commands is  
> no longer working, but I don’t know of any way to find out why.

Try to repeat the command in script/console and see what the object’s  
errors attribute contains. update\_attributes returns false if the  
validations fail.

//jarkko

---

<div class="post-metadata">

**Author:** ![Marc.Love](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@Marc.Love](https://www.ruby-forum.com/u/Marc.Love)\
**Post date:** [September 25, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/update-attributes/49595/3 "2007-09-25T23:07:17Z")

</div>

Thanks for the help Bill. So to be clear, validation rules apply on  
update\_attributes even if there attributes are NOT included in the  
update\_attributes to be changed. Is that because the update actually  
calls to update all the information?

Thanks again!

-E
