# ActiveRecord return normal?

**URL:** <https://discuss.rubyonrails.org/t/activerecord-return-normal/68099>\
**Category:** rubyonrails-talk\
**Created:** [November 9, 2013, 4:42pm UTC](https://discuss.rubyonrails.org/t/activerecord-return-normal/68099 "2013-11-09T16:42:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wilson\_Usman](https://avatars.discourse-cdn.com/v4/letter/w/c4cdca/32.png) [@Wilson\_Usman](https://discuss.rubyonrails.org/u/Wilson_Usman)\
**Post date:** [November 9, 2013, 4:42pm UTC](https://discuss.rubyonrails.org/t/activerecord-return-normal/68099/1 "2013-11-09T16:42:19Z")

</div>

Hi Everyone,

I’m totally brand new to RoR. I’m really starting to love coding more now that I’ve found RoR. I have what might be a dumb question, but I’m curious to know this.

Is it normal to get this result:

In the Beginning Rails 4 book

I’m following this step:

irb(main):097:0\> article.location = “Toronto, ON”

Here’s what I get:

RuntimeError: can’t modify frozen Hash

\*\* from /Library/Ruby/Gems/2.0.0/gems/activerecord-4.0.1/lib/active\_record/attribute\_methods/write.rb:45:in `='\*\*

\*\* from /Library/Ruby/Gems/2.0.0/gems/activerecord-4.0.1/lib/active\_record/attribute\_methods/write.rb:45:in `write\_attribute’\*\*

\*\* from /Library/Ruby/Gems/2.0.0/gems/activerecord-4.0.1/lib/active\_record/attribute\_methods/dirty.rb:70:in `write\_attribute’\*\*

\*\* from /Library/Ruby/Gems/2.0.0/gems/activerecord-4.0.1/lib/active\_record/attribute\_methods/write.rb:21:in `\_\_temp\_\_c6f636164796f6e6='\*\*

\*\* from (irb):97\*\*

\*\* from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.1/lib/rails/commands/console.rb:90:in `start’\*\*

\*\* from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.1/lib/rails/commands/console.rb:9:in `start’\*\*

\*\* from /Library/Ruby/Gems/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:62:in `\<top (required)\>'\*\*

\*\* from bin/rails:4:in `require’\*\*

\*\* from bin/rails:4:in `'\*\*

But in the book they only show:

RuntimeError: can’t modify frozen Hash

Could it be that I’ve set something wrong on my mac when I installed rails or rvm?

I’ve literally followed each part of the book step-by-step.

---

<div class="post-metadata">

**Author:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [November 10, 2013, 12:19am UTC](https://discuss.rubyonrails.org/t/activerecord-return-normal/68099/2 "2013-11-10T00:19:20Z")

</div>

That sounds like they just didn't want to fill a whole page of the book with stack trace (especially as that part will vary since it depends on where gems are installed)

Fred
