OK, I don’t know exactly what this was, but I was attempting to store a
collection of AR association objects in an object that was in the
session.
So, imagine Parent has_many Children and @parent is an instance of
Parent.
I was setting one of my object’s attributes to @a.children and putting
it into the session. Each of those objects in the collection is
actually an A object somehow - which again, seems to have to do with the
association magic.
Anyhow, I just took that out of the session (where it didn’t belong
anyway, since the whole point of what I’m doing is to use a custom
caching scheme to persist across requests), and everything’s fine.
I’m not sure what broke, but I will be wary about putting objects in the
session which contain sets of associations stored in any of their
attributes.
I found this while googling. I am trying to upgrade my application
from 1.1.6 to 1.2.3 and I’m getting this same TypeError thrown from
my session.
Did you ever figure out exactly what causes this? I have an object in
my session I use to make XML-RPC calls and rails can’t seem to
decipher the object when marshaling the session any more.
I found this while googling. I am trying to upgrade my application
from 1.1.6 to 1.2.3 and I’m getting this same TypeError thrown from
my session.
Did you ever figure out exactly what causes this? I have an object in
my session I use to make XML-RPC calls and rails can’t seem to
decipher the object when marshaling the session any more.