Stranraer progressed to a third-round Scottish Cup tie with Hearts after a convincing victory over Forfar.
Michael Moore headed them in front in 18 minutes when he nodded home Joe McAlpine's corner.
Kenny Wright put the home side two up just before half-time from 18 yards. Paul Lunan replied for Forfar in 58 minutes to give them hope.
But Stranraer clinched the win when Ramsay lobbed Forfar keeper Sandy Wood from 12 yards.
Stranraer: Black, Snowdon, Sharp, Aitken (Hunter 89), Walker (McKinstry 86), McAlpine, Wright, Crilly, Moore, Hamilton, Ramsay (McMullan 81). Subs Not Used: Burns, Morrison.
Goals: Moore 18, Wright 45, Ramsay 65.
Forfar: Wood, Keogh, Lynn (Gribben 38), Allison, King, Moon, Tade (Webster 77), Lunan, Lumsden, Fraser (Lombardi 77), Beith. Subs Not Used: Coyle, Thomson.
Goals: Lunan 58.
Ref: Chris Boyle