Railroads give an extra hammer to mines and lumbermills, not workshops.
When my workers have nothing to do, I have them build roads over forests first, then mines so I that once I get the tech required, I can rush to those tiles and build lumbermills and railroads without delay.