[V6] Rails3.0 porting with old format route

rebased #745.