Maybe this is a bug (or undocumented feature) in YAML. I have a similar problem in Rails (but ActiveRecord is not involved in this workflow):
I YAML.dump a Hash that contains attributes that I want to pass to a MyModel#new method. But when I YAML.load the resulting yaml, the key :id is not in the Hash anymore! I tried to reproduce this behavior with a simpler Hash, but i wasn't able to. My current workaround is to rename the key ":id" to ":_id" before dumping and rename it back after loading... Ephraim -- Posted via http://www.ruby-forum.com/. -- 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.

