Anchoring rails with terminals