Thanks Fred! That worked!

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Frederick Cheung
Sent: Thursday, December 18, 2008 7:20 PM
To: [email protected]
Subject: [Rails] Re: serializing active record objects do not save after
first slice



On 18 Dec 2008, at 11:13, tyliong wrote:
>
> but it does not change the Market.marketarray to ["blue","green"]
>
> it just keeps the original array as if it did not happen
>
> if i do this @marketobject.marketarray = ["1","1"]
> @marketobject.save!
> then it saves the marketarray to ["1","1"]
>
call @marketobject.marketarray_will_change! before you save (you must  
do this when you change objects in place (so same thing if you had  a  
string attribute and did .gsub!)

Fred


> please help.
> >




--~--~---------~--~----~------------~-------~--~----~
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