Ride 'Em Cowboy (1942)
Two peanut vendors at a rodeo show get in trouble with their boss and hide out on a railroad train heading west. They get jobs as cowboys on a dude ranch, despite the fact that neither of them knows anything about cowboys, horses, or anything else.
Some information and/or images in this header may be provided either partially or in full from The Movie Database.