Rail end caps