Hello
I have been wrestling w/ the frozen hash problem in a script and I''m
trying to catch this at the source where it crashes the program in
flames. Unfortunately, when I look at the errors, the failure is way
up in the active record ancestery chain.
Here''s the first entries in the error output:
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1877:in
`[]=''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1877:in
`unserialize_attribute''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1803:in
`read_attribute''
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1489:in
`[]''
Also, I know you can test to see if a hash is frozen by using the
frozen? method.
I just don''t know where test and rescue this exception.
Thanks for any help!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---