Do you like travelling by train?
Some time ago, I traveled by train but it was an underground / subway and I did not like it.
I also didn't like the Berlin subway during my studies .)
I travelled by train but it was (on the) underground and I did not like it.
I have traveled by train but it was for on the underground/ subway and I did not like it.
The previous three posts provide some excellent corrections/suggestions. I don't believe I can offer anything beyond those.