The best way to do it is hold the c key down when creating your profile curves so they snap to the rails as blinn said.