The rule book stated that locomotive-hauled trains had precedence over horse-drawn trains, but some horse drivers refused to give way and on one occasion a locomotive had to follow a horse-drawn train for over 2 miles .