Trains drive on rails. For me, the analogy doesn't work very well. Trains are big and heavy and move quickly. Nails are small and light and move extremely slowly. Also, they seem to be embedded onto the whole finger, not merely kept in place by a rail-like "groove".