tags:

views:

150

answers:

0

Hey,

I am storing an object in a table with YAML dump but when I go to get it back with load it returns false when I use .to_s

require "yaml"
@candidates = YAML::load(serialized_object.to_s)

if I do it without .to_s I get an "instance of IO needed" error

serialized_object.inspect shows this

--- "[#<SearchIndex data: \"--- \\n- 1\\n- 3\\n- 4\\n\">]"

Thanks, Alex