Displaying 1 result from an estimated 1 matches for "unserializable_attribut".
Did you mean:
unserializable_attribute
2007 Mar 29
1
ActiveRecord attributes -- strange behavior when adding Array to an element
Hi,
I have a database table and associated ActiveRecord model. I was
trying to store (temporarily) an array in one of the attribute
elements - not to save it, but just so that I can keep some form data
in a sensible place. A stripped down version of the problem I''m having
is:
p = Property.new(:bedroom_count => ["2","3"])
puts p.inspect # ==> will correctly show