help me with how to Grinding Rail like in ratchet in clank games?

Can someone help with this problem Im trying to make a Grinding Rail Endless Runner like in the ratchet and clank games. I posted a video,
how do i make him follow the rail like in this video? I wanna attach him on the rail.

any help would be appreciated

From 1:17 in video

i posted pic of what i have done so far

post pic if you can and if someone have sulution?