Hi there,

I've recently upgraded our main application to Rails 2.2.2, but I've run 
into an interesting problem. I am trying to update a User object for 
example, but I keep getting the 'can't modify frozen hash' error when 
attempting to call update attributes. It seems that the user object's 
attributes that I am trying to update are frozen, although I can see no 
reason for this whatsoever. Its only a very basic controller, with show, 
edit, update, etc actions there are no other associated objects. I 
simply do a simple

@user = User.find(params[:id])
@user.update_attributes(params[:user])

The @user object is showing as frozen directly after the find. Looking 
through the full trace from my app the only thing I can see that I think 
might cause it is the query cache, although I am unsure of how to really 
to troubleshoot this any further.

Can anyone give me any pointers?

RobL

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

Reply via email to