[V8] Rails3 backporting to Rails2 without default route

rebased #734.