Serializing - Deserializing a data structure in RoR

Vinicius Cubas Brand
Wed, 01 Nov 2006 17:57:08 -0000

Hi. I have a data structure, with arrays and hashes, with several data types
inside. For instance:

{
   :conditions => [ ''stand_id = ?'' , 1],
   :limit => 10,
   :offset => 10
}

I want to serialize this structure in a string, to be stored , then another
day in other session I would like to restore it exactly as it is, for
instance symbols remain symbols, arrays remain arrays, hashes remain hashes
and so on for other data types. How can I do that in Ruby / RoR?

Thanks, Vinicius

--
.----------------------.
| Vinicius Cubas Brand |
| viniciuscb gmail.com |
''----------------------''