ST. PETERSBURG, Fla. (AP) Tampa Bay Rays right-hander Erasmo Ramirez lost his no-hit bid against the New York Yankees when Carlos Beltran singled leading off the eighth inning.

Beltran hit a hard liner that took a short-hop and hit off first baseman Richie Shaffer and shot into right field.

The Yankees had two baserunners through the seventh. Alex Rodriguez walked with two outs in the fourth and Brett Gardner drew another walk to start the seventh.

More from FoxSports

Gardner was doubled off second after Mikie Mahtook made a leaping catch into the right-field wall on Brian McCann's drive.

Second baseman Logan Forsythe, playing in shallow right field, made a leaping catch on Greg Bird's soft liner in the second.

Beltran hit an opposite-field flyball leading off the fifth that was caught on the warning track.

The game is tied 0-0.

Matt Garza has the only Tampa Bay no-hitter, beating Detroit 5-0 on July 26, 2010.

The Yankees were last no-hit when Houston used six pitchers in an 8-0 victory June 11, 2003. New York was last no-hit by a single pitcher when Baltimore's Hoyt Wilheim beat Don Larsen 1-0 on Sept. 20, 1958.