I'm trying to persist an Array of Arrays to my SQLite database in Rails.
Right now, I've got an object that can hold such an Array, and instances appear to save with no problem. However, it's clearly not being persisted to the database-- when I call functions on My_Object.array in views different than the one that the array is created on, it comes out nil and doesn't work.
For example:
class My_Object < ActiveRecord::Base
attr_accessor :array
end
When I call My_Object.new(:array => [ [1, 2, 3], [4, 5, 6] ]), everything appears to work properly, but I can't access the :array property anywhere else, it just turns out nil.
Any ideas?