Hi,
something wrong with ActiveRecord or YAML? They don't put Strings into Quotes when it serializes. This gave me trouble when I serialized a String with a double colon (eg. 'key: value'). After AR unserialized the Value it became a Hash since a String 'key: value' becomes attribute[:key] => value... 
Sincerely
Florian
Florian Aßmann wrote:
something wrong with ActiveRecord or YAML? They don't put Strings into Quotes when it serializes. This gave me trouble when I serialized a String with a double colon (eg. 'key: value'). After AR unserialized the Value it became a Hash since a String 'key: value' becomes attribute[:key] => value... 
Yes, this is an ActiveRecord bug. It's not YAMLizing String objects
when writing to the DB, but is de-YAMLizing when reading from the DB.