# Help needed on update\_attributes

**URL:** <https://www.ruby-forum.com/t/help-needed-on-update-attributes/106656>\
**Category:** Rails\
**Created:** [June 12, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/help-needed-on-update-attributes/106656 "2007-06-12T22:29:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wiwi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ee59a6/32.png) [@Wiwi](https://www.ruby-forum.com/u/Wiwi)\
**Post date:** [June 12, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/help-needed-on-update-attributes/106656/1 "2007-06-12T22:29:28Z")

</div>

Hi,

Here is my code to update an attribute of one record:

@person = Person.find($person\_id)

@person.update\_attribute(:FIRST\_NAME , “ANDY”)

It did not update the FRIST\_NAME Bryan to ANDY in the database table,  
but it did change in @person variable.

Any idea???

Thanks,

---

<div class="post-metadata">

**Author:** ![Wiwi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ee59a6/32.png) [@Wiwi](https://www.ruby-forum.com/u/Wiwi)\
**Post date:** [June 12, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/help-needed-on-update-attributes/106656/2 "2007-06-12T22:42:29Z")

</div>

Hello,

I forget that the database is HeidiSQL.

---

<div class="post-metadata">

**Author:** ![Wiwi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ee59a6/32.png) [@Wiwi](https://www.ruby-forum.com/u/Wiwi)\
**Post date:** [June 13, 2007, 12:12am UTC](https://www.ruby-forum.com/t/help-needed-on-update-attributes/106656/3 "2007-06-13T00:12:43Z")

</div>

Is your first\_name column in your db really all caps? This is not the  
Ruby/Rails convention by the way… all upper should be saved for  
constants.

b
