Question about yaml. Thank you !!

Hi friends:

I tried to convert a model object to yaml(use to_yaml method), and after that, I would like to convert the yaml(string type) back to the model object. But when I use YAML::load to do that, it failed, the return object's class is Yaml class, not my prior model class.. Please tell me how can I do to convert yaml to an object as the prior model class, or how can I access the content of the model object by this yaml?

Thank you !

Tony Shih

Try this:

http://www.humandoing.net/past/2007/2/15/deserialize_objects_from_yaml/

Clever Neologism wrote:

Try this:

http://www.humandoing.net/past/2007/2/15/deserialize_objects_from_yaml/

On Apr 16, 12:41 pm, Shih Tony <rails-mailing-l...@andreas-s.net>

It looks great.. Thank you very much!