When hoboes spoke of "riding the rods," they meant riding *under* a car by setting a wide board on the truss rods and hanging on.
Once the phrase was popularized in the 20th century, non-hoboes erroneously assumed it was a colorful synonym for "riding the rails."