http://en.wikipedia.org/wiki/Dining_car
Most railroads began offering meal service on trains even before the First Transcontinental Railroad. By the mid-1880s, dedicated dining cars were a normal part of long-distance trains from Chicago to points west