Displaying 1 result from an estimated 1 matches for "m001004".
Did you mean:
1001004
2007 Jan 21
1
Weirdness when save symbols to AR string fields
I have a model foo with two fields: id and string. When I try to save a
symbol into that string field I get weird results:
>> foo = Foo.new(:string => :foobar)
>> foo.string
=> :foobar
>> foo.save
>> foo.string
=> :foobar
>> foo = Foo.find(foo.id)
=> #<Foo:0x467282c @attributes={"id"=>5, "string"=>"---