Issue is : TypeError (singleton can't be dumped): Now when you are running a Rails app, this will be dumped into your development.log or production.log depending on your application environment.
Full trace will look something like this
/usr/local/lib/ruby/1.8/pstore
/usr/local/lib/ruby/1.8/pstore
/usr/local/lib/ruby/1.8/pstore
/usr/local/lib/ruby/1.8/cgi
/usr/local/lib/ruby/1.8/cgi
/usr/local/lib/ruby/1.8/cgi
.//vendor/rails/actionpack/lib
Root cause: In your Ruby/Rails code you are trying to add a singleton class in the session, which is against the compatibility rules. So look for pure singleton class or Modules that's getting added to the rails session.
Solution: Have a class inside the Singelton class which will hold the data that you want to store in session and add that to your session. This will work.
4 comments:
Thanks for the post! You saved me some time hunting down this error.
Thank you so much!
I come across this problem last night, and did not find a solution to it until this afternoon. You helped a lot!
Thanks
Nice, thanks for the help.
Post a Comment