Problem with curve modifier When I am in Edit mode, the curve modifier doesn't work but
when I go to Object mode, the curve modifier works but the object (the rail) moves to the left.
Any ideas?
Thanks.

Here is the file:
It's because the mesh and the curve haven't got the same origin point. Select the curve, press Shift+S-->Cursor to Selected. Then select your mesh and press Shift+S-->Selection to Cursor.