Raith moved up to second in the Scottish Championship after a comfortable 3-1 victory over Dundee.
Osman Sow gave the visitors a fifth-minute lead when he brought down a Paul McMullan cross and slotted the ball home.
That advantage lasted until the 22nd minute when Raith defender Kyle Benedictus headed in an equaliser.
Rovers went ahead again through Reghan Tumilty's 30-yard strike in the 54th minute, before Kai Kennedy sealed victory for the hosts on the hour with a neat curling strike.