Railway picked up a crucial win at Park Avenue to leave UCD in real trouble at the bottom of division one.
The students started reasonably well, taking the lead through Karl Smith while Railway were fortunate to draw level on the half-time whistle as they were given a second chance from a penalty corner which Kenny Carroll reversed into the goal from a rebound.
They used that momentum to take the lead through Teddy Lynch - his first since returning to the fold after his honeymoon. David Holmes extended the advantage before Mark English got the pick of the goals. Former Corinthian Rob Lynch pulled one back from the flick spot but Eoin McArthur completed a fine second half performance.