Hi,

i am having a very weird problem i have an array

Model:

serialize :marketarray


Controller
@marketobject = Market.find(1)

@marketobject.marketarray = ["red","blue","green"]

I do this @marketobject.marketarray.slice!(0)

@marketobject.save!

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"]

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