Sessions with class object

Hi, I have a RoR app working (with Ajax) and I am trying to hook it up to a class that is using soap4r. I have a simple example working that stores an index through sessions and will dynamically update it. I want to store my class object in the session but as soon as I add it to the session everything breaks... no error except the wonderful message "something went wrong".

I found a couple of examples that mention that I need to put a model :blah to preload... but I am not using a database so that doesn't work.

Any ideas?