refactored Base::route_eval to use each_with_index in order to improve legibility