Move Geometry with rail curve

Hi. I have a problem, I'm trying to move an object using a
as rail curve and a slider control,I try with two vectors
but the result is not what I want.


thanks