rails memcached dalli Marshalling error for key

What is "includes" and what does it return? It should be a String,
Hash ({}), Array ([]), Fixnum (1), Range (1..2) or Float (1.0) for
Dalli to not bitch about Marshaling. Otherwise you have to build your
own Marshals for the object which might or might not be worth it.

includes performs a join, and returns a ActiveRecord::Relation object. Just call .to_a like Frederick Cheung says, and Dalli will be happy :slight_smile: