# Object.update\_attributes(hash)

**URL:** <https://www.ruby-forum.com/t/object-update-attributes-hash/53417>\
**Category:** Rails\
**Created:** [February 4, 2006, 3:39pm UTC](https://www.ruby-forum.com/t/object-update-attributes-hash/53417 "2006-02-04T15:39:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dfb087/32.png) [@samer](https://www.ruby-forum.com/u/samer)\
**Post date:** [February 4, 2006, 3:39pm UTC](https://www.ruby-forum.com/t/object-update-attributes-hash/53417/1 "2006-02-04T15:39:12Z")

</div>

shouldn’t @m.update\_attributes(params[:m]) only update the attributes  
listed in the params hash? it tries to update all table attributes

I hacked \_form.rhtml and removed some of the fields, hoping that they  
will not be updated… but it didn’t work.
