How can i make my skateboard character grind on rails and all the edges of meshes?

Are there any easier methods for grinding which i can learn .
i want my character to grind everywhere where there is an edge like tony hawk games …