RUTHIN left it late to maintain their spot in the top-two of Division One (North).
The Blues eventually saw off a combative COBRA side 22-20 with the last kick off the game.
The visitors got out of the blocks fast and they opened the scoring with a converted try from a driving maul.
Ruthin responded immediately with a penalty from fly-half Deian Williams and the hosts looked to keep the tempo high.
Following a quick tap and great break from full back Iestyn Davies, the Blues took the lead for the first time via a well-worked try in the corner from wing Nathan Jones, converted by Williams.
Back came COBRA with a second forward-inspired try, while another Williams penalty had Ruthin narrowly 13-12 ahead at the break.
In a feisty second half, penalties were exchanged before COBRA scored their third try in the corner to move 20-19 ahead with seven minutes left.
The Ruthin pack really got the bit between their teeth, with aggressive carries from Liam Davies and Cam Lumsden.
With the clock expired and Ruthin getting ever closer to the line, an infringement at the ruck give the Blues the opportunity they craved.
Player of the match Williams, who was flawless off the tee, kept his nerve to kick the three points and seal the victory.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here