PHILADELPHIA (AP) -- Ryne Sandberg's first win as a Major League manager came with some help from the opposition.
Carlos Ruiz had four hits and the Philadelphia Phillies benefited from two ninth-inning errors by shortstop Hanley Ramirez to beat the Dodgers 3-2 on Sunday, giving Sandberg his first victory and ending Los Angeles' 10-game winning streak.
Sandberg took over as interim manager Friday when Charlie Manuel, the winningest skipper in club history, was fired.
"We capitalized on a couple of miscues by the Dodgers," said Sandberg, who is going to save the lineup card. "We'll take it right now and hopefully build from that. Hopefully it will give us momentum for the rest of the homestand."
Philadelphia certainly could use some. Shut out by the Dodgers in each of Sandberg's first two games, the Phillies snapped a four-game skid and won for only the fifth time in 26 games.
Darin Ruf homered to begin Philadelphia's comeback from a two-run deficit."It's nice to get a win, in general," Ruf said. "Hopefully we can get rolling and get (Sandberg) a few more as well."
Andre Ethier went deep for the Dodgers, who have lost just nine of their last 51.
Brandon League (6-4) relieved Paco Rodriguez with one out in the ninth and nobody on. After Casper Wells reached on Ramirez's throwing error, Ruiz singled to right to put runners on first and third.
League intentionally walked pinch-hitter Jimmy Rollins to load the bases for pinch-hitter Michael Young. He grounded sharply to Ramirez, who bobbled a potential double-play ball as Wells scored to end the Dodgers' streak of 12 straight victories in one-run games.
Jonathan Papelbon (3-1) pitched a scoreless ninth, striking out two.
The Phillies snapped a scoreless streak of 21 2/3 innings when Ruf homered with two outs in the fourth to pull them to 2-1.
Philadelphia tied it in the sixth on Cody Asche's groundout.
Los Angeles jumped out to a 1-0 lead on Ethier's homer leading off the second and added a run in the fourth on Jerry Hariston Jr.'s RBI single.
But the Dodgers didn't have much more success against Cole Hamels, who left after allowing seven hits in seven innings with eight strikeouts and no walks.
The left-hander has yielded two earned runs or less in eight of his last nine starts but continued his hard-luck trend of 2013.
It was the ninth no-decision for Hamels, who entered with the fifth-worst run support (3.33 runs per game) among starters in the majors.
"It's unfortunate I wasn't able to do it earlier," Hamels said of his recent form. "It's kind of what I expect of myself. You have to keep pushing yourself, preparing for the next game and expect to do things well.
"This is a good start, getting a win -- especially against a great team," he added. "It gives us a place to start from."
The Dodgers are 25-4 since the All-Star break; the Phillies are 6-21 over the same stretch. ... The Phillies had lost the previous 16 games in which they scored three runs or fewer. ... Phillies RHP Ethan Martin (1-2, 6.28 ERA) faces Colorado RHP Jeff Manship (0-2, 7.20) when Philadelphia opens a four-game series against the Rockies on Monday night.