fix Routing incorrectly matches documents issue and fix for #63

This comment also applies to Rails23#recognizes?