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,
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 On Jun 21, 1:30 am, skumar <sadeeshkum...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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,
Reasonably Related Threads
- getting error can't modify frozen hash
- How to update partial attributes of a object from a form?
- Consequences of overriding update_attribute to force validation?
- How to skip password validation when updating other fields?
- TypeError (can't modify frozen hash) - Production Mode Only