Skip to content

Instantly share code, notes, and snippets.

View railsfactory-kumaresan's full-sized avatar

Kumaresan railsfactory-kumaresan

View GitHub Profile
Marshalling error for key '_my_session:1243f4a7a0c8d1dba363bc2ca7a246e8': singleton can't be dumped
You are trying to cache a Ruby object which cannot be serialized to memcached.
/usr/local/rvm/gems/ruby-1.9.3-p484/gems/dalli-2.7.0/lib/dalli/server.rb:398:in `dump'
#Controller problem
session[:telefones] = Cliente.telefones
#Solution
session[:telefones] = Cliente.telefones.entries