ORCHARD PARK, N.Y. (AP) -- The St. Louis Rams are staying in the playoff race by suddenly showing they can win in the clutch.
Sam Bradford capped a 14-play, 84-yard drive with a 13-yard pass to Brandon Gibson with 48 seconds left to seal a 15-12 win over the Buffalo Bills. It was Bradford's second consecutive fourth-quarter comeback after rallying the Rams in a 16-13 overtime win over San Francisco last weekend.
In keeping St. Louis (6-6-1) in the playoff picture, Bradford helped his team win three straight for the first time since 2006. And the victory came on the road, where the Rams had traditionally struggled.
They improved to 2-3-1 away from St. Louis this season, and 9-36-1 since the start of 2007.
Bradford finished 19 of 39 for 209 yards and an interception. Steven Jackson had 64 yards rushing and scored on a 1-yard plunge, while Gibson made six catches for 100 yards.
It was a loss for which the Bills (5-8) could only blame themselves.
Safety George Wilson twice had chances to intercept Bradford on the final drive, only to drop the ball. Buffalo's defense also allowed the Rams to convert two third-down chances and a fourth-and-1 on which Bradford hit Austin Pettis for 9 yards.
This marked the second time Buffalo has squandered a lead at home in the final minutes, falling 35-34 to Tennessee on Oct. 21.
The Bills' final drive ended with 12 seconds left when Ryan Fitzpatrick fluttered a pass up the right sideline and linebacker Jo-Lonn Dunbar intercepted.
Fitzpatrick went 25 of 33 for 247 yards passing, including a 2-yard touchdown to Lee Smith.
The Bills' offense shared much of the blame after lacking finish in the first half. Buffalo came away with two field goals on three drives inside the Rams 25. That included Fred Jackson losing a fumble at the Rams 14.
The news got even worse for Jackson, who was helped off the field after appearing to hurt his right leg with about 5 minutes left.
Jackson's leg was sandwiched by two Rams as they made a tackle on a 2-yard run near midfield. With a towel over his head, Jackson was then carted off from the sideline, with fans chanting "Freddie! Freddie!"
Credit the Rams' defense, which limited the Bills to 281 yards and forced two turnovers. Rookie tackle Michael Brockers had 1 1/2 of St. Louis' five sacks.
The Rams persevered on a chilly and wet day, with temperatures in the high 30s, and a light drizzle beginning to fall in the second half.
After being limited to 71 yards and four first-downs in the first half, the Rams got on track to open the second half. Bradford directed an 11-play, 70-yard drive capped by Jackson's plunge to put St. Louis ahead 7-6.
The Bills responded immediately with Smith scoring to cap a seven-play, 75-yard drive.
Buffalo, however, failed on the extra point after the snap slipped through the hands of holder Shawn Powell.
The Rams mustered just three first downs and 66 yards on their next three possessions before Bradford began the decisive drive at his 16 with 4:55 left.