PHILADELPHIA -- The Phillies ditched the bench and pressed against the dugout railing rooting on Michael Young.
That saved them a few steps when they charged toward the basepath to mob Young in their biggest celebration yet in six games under interim manager Ryne Sandberg.
"We battled right to the end," Sandberg said.
Did they ever.
Erik Kratz opened the ninth with a double off Rockies closer Rafael Betancourt (2-4). Pinch runner Casper Wells advanced to third on a grounder and scored the tying run on Ruiz's pinch-hit double to left. Jimmy Rollins was walked intentionally and Young followed with the winning single to left.
Jake Diekman (1-3) tossed a scoreless ninth for the win.
The Phillies stormed out of the dugout and converged on Young.
Nolan Arenado's two-out single in the eighth inning had put Colorado up 3-2. Arenado made a game-saving stop at third base in Colorado's 5-3 win on Tuesday. One game later, he poked an opposite field single to right off reliever Justin De Fratus.
Betancourt just couldn't make it stand.
"I'd take Rafi with a one-run lead every time," Rockies manager Walt Weiss said.
Ruiz hustled home for the winning run for one of his few bright spots in a down season for the former All-Star catcher. Ruiz, who has only three homers and 16 RBI, was suspended the first 25 games for using a banned amphetamine.
"With everything that happened, it was tough for me," he said. "But that's no excuse. I'm just trying to do my best and help the team win."
After losing three of four at Baltimore, the Rockies have dropped two of three so far in the four-game series against the Phillies.
Rockies starter Juan Nicasio allowed two runs -- one earned -- in 5 2/3 innings and worked out of several jams to keep it close.
"He stayed away from the big inning that was getting him the first time he was up," Weiss said. "When it starts to slip away, he's been able to close out the inning and not let it get away from him."
Phillies starter Cliff Lee remained winless since July 5 and is 0-4 with two no-decisions since beating Atlanta. He kept the Phillies in this one, striking out six and walking none over seven innings.
The Phillies blew several opportunities to help out Lee and bust the game open.
They stranded runners on second and third when Lee struck out swinging to end the second. They scored only one run after loading the bases with no outs in the fifth. Young grounded into a double play to score one run and make it 2-2. Utley fouled out to end the inning.
Nicasio was chased with runners on first and second and two outs in the sixth. Wilton Lopez fanned John Mayberry Jr. on a check swing to escape the jam.
They had some timely hitting in the first when Utley's 16th homer of the season staked Lee to a 1-0 lead.
Rosario tied it a 1 on a solo shot to right in the second that extended his hitting streak to 12 games. Dexter Fowler ripped an RBI single to left later in the inning for a 2-1 lead, but Domonic Brown threw out Jordan Pacheco at home to end the inning.
Phillies RHP Roy Halladay (shoulder) is set to make his third rehab start Sunday with Double-A Reading. Halladay also clarified some remarks he made after Tuesday's rehab start that made it seem like he endorsed the move to fire Charlie Manuel and replace him with Sandberg. "I have a lot of respect for Charlie. There were some articles put out that offended me and, I'm sure, offended Charlie. And I called him today and talked to him about it," Halladay said. ... The Phillies signed free-agent OF Roger Bernadina and optioned Michael Martinez to Triple-A Lehigh Valley. ... The Rockies send RHP Chad Bettis (0-2, 5.30 ERA) to the mound Thursday against RHP Kyle Kendrick (10-10, 4.36) in the finale of the four-game series.