Rails codebases I've looked at are usually in pretty good shape. I attribute it to the conventions that are fairly strongly enforced.
To be fair, I usually seem to find myself given rails 2.x and 3.x codebases which have sometimes been in production for close to a decade. That is a lot of time to build serious technical debt.