Wiktionary
ride the rails
vb. (context idiomatic English) To travel by railway train, trolley, etc.
Usage examples of "ride the rails".
They'd let a man ride the rails as the rails could be ridden, rather than his being forced to pause every few hundred miles or perish.
I was amazed to find that such people still existed, that it was still possible to ride the rails.