[V12] Rails3.0 porting without default route

rebased #557.