Tuesday, June 29, 2010

[Rails] singleton can't be dumped in rails session

Hi,
I am doing an integration with commission junction using SOAP to get the
result. It is working fine for me. My problem is I have to add the
pagination so I have used will_paginate for pagination. For each page I
am doing a call to commission junction and getting the result which make
a performance bottleneck for my application. To solve this I have
decided to store the response in session and when the request for
another page comes I will show the result from session instead of
calling CJ.

Problem is whenever I am trying to dump the response in session I
getting an error
"singleton can't be dumped in rails session".

It seems that SOAP object is instance of singleton class and due to that
it is not allowing to dump it.

Is there any other way to solve this?


Thanks,
Tushar
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate