[LRUG] Best way to serialise a Ruby object?

James Mead james at floehopper.org
Fri Jul 15 02:26:37 PDT 2011


If the problem is to do with a difference between Psych and Syck, perhaps it would help to set the YAML engine to be the same when writing and when reading? i.e. YAML::ENGINE.yamler= 'syck'.

James.
----
http://jamesmead.org


On 15 Jul 2011, at 10:18, Andrew Stewart wrote:

> 
> On 14 Jul 2011, at 10:11, Andrew Stewart wrote:
>> What's the best way these days to serialise a Ruby object for storage in a SQL database field, and de-serialise it back again?
> 
> Thanks everybody for your replies.  Some good things to cogitate!
> 
> Yours,
> Andy Stewart
> 
> -------
> http://airbladesoftware.com
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org




More information about the Chat mailing list