I am not sure if this is related to your problem, but it has the same 
symptom "Can't modify frozen hash", so I put it here for other people to 
refer if needed.

I have the error "Can't modify frozen hash" when I query an array of 
objects from the database, then do the following things

- Based on some conditions, I will update the array, or destroy objects 
in the array out of database, or add more objects to the array.

- Save the objects in the array to the database.

The error happens when the code (with some logical bugs) deletes one of 
the object in the database, but still keeps the object in the array. 
Later on, when saving the array, it saves that deleted object also, so 
the error "Can't modify frozen hash" happens.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to