# Can't modify frozen hash

**URL:** <https://www.ruby-forum.com/t/cant-modify-frozen-hash/196973>\
**Category:** Rails\
**Created:** [June 20, 2009, 10:30pm UTC](https://www.ruby-forum.com/t/cant-modify-frozen-hash/196973 "2009-06-20T22:30:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@skumar](https://www.ruby-forum.com/u/skumar)\
**Post date:** [June 20, 2009, 10:30pm UTC](https://www.ruby-forum.com/t/cant-modify-frozen-hash/196973/1 "2009-06-20T22:30:56Z")

</div>

Hi,

When I upgraded my rails application to rails 2.3.2 I am getting  
error ‘can’t modify frozen hash’ on using

@something.update\_attribute(params[:something]).  
Can anyone help me who is familiarize with this bug?

Thanks,

---

<div class="post-metadata">

**Author:** ![skumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/e9c0ed/32.png) [@skumar](https://www.ruby-forum.com/u/skumar)\
**Post date:** [June 23, 2009, 10:44am UTC](https://www.ruby-forum.com/t/cant-modify-frozen-hash/196973/2 "2009-06-23T10:44:31Z")

</div>

Can you print the @something.frozen? in log file.  
If you are getting it as true, you may have to digg @something then.  
It seems not just the a record from database.

Thanks  
Srinivas
