And who says Rails doesn't scale?
The scale of a memcached cluster doesn't really say anything about the scaling abilities of their underlying stack.
That said I was referring more to their one giant database and self described "russian-doll architecture of nested caching".
Whether it be Rails for BaseCamp or PHP/Facebook stack for Facebook it really says nothing about the database and caching behind it.
A web front may be really great at scaling but it's all up to the database.