ride the rails
Verb
Meaning
ride the rails (third-person singular simple present rides the rails, present participle riding the rails, simple past rode the rails, past participle ridden the rails)
(idiomatic) To travel by railway train, trolley, etc.