TORONTO -- Devon Travis had a career-high four hits as the Toronto Blue Jays busted out of their offensive slump to score a 7-5 win over the Tampa Bay Rays on Monday night.

Travis hit a go-ahead bases-loaded single in the seventh inning and Jose Bautista added a two-run double to push the Jays in front for good in the opener of a six-game homestand.

Toronto came alive offensively after an ultimately successful road trip (4-3 record) that nonetheless saw the club mostly neutralized offensively (17 runs scored). The seven runs scored Monday night at Rogers Centre were the most by the club this month and helped end a two-game slide.

The Jays entered the night a game back of Baltimore for first place in the American League East.

Perhaps the only Jay to hit consistently in recent weeks, Travis led off the bottom of the first with a triple to right, the ball scooting past right fielder Mikie Mahtook. Travis, who added three singles, is batting .371 (33-89) over the last 22 games and entrenching himself in the leadoff spot for Toronto.

A Bautista sacrifice fly scored Travis and was followed by Edwin Encarnacion's 31st home run of the season off Rays starter Jake Odorizzi.

It was the 299th career homer for Encarnacion, who matched the Orioles' Mark Trumbo for the Major League lead. Encarnacion is looking to become 12th active player in baseball with at least 300 home runs and 11th ever born in the Dominican Republic.

Encarnacion's home run was also the Jays' 17th straight solo shot, the longest such streak in team history.

Coming off one of his finer starts of the season (seven innings, one earned run), R.A Dickey endured another rough start at home.

He worked himself into and then out of trouble early.

After Logan Forsythe reached on an infield single to start the game, Dickey walked Evan Longoria, struck out Brad Miller on a full count and then put Mahtook on with another walk to load the bases. Another strikeout, this time on Nick Franklin swinging, closed the nervous opening inning.

Dickey threw 34 pitches in the frame, only 18 of them for strikes.

He stumbled into trouble again in the fourth, this time unable to escape unharmed. The Rays scored twice, evening the score at 2-2, with Miller and Mahtook both hitting doubles.

The Jays retook the lead in the bottom of the inning, loading the bases for Encarnacion. He ripped a single to left that plated two runs for the 4-2 advantage. Encarnacion remains the MLB leader with 94 RBIs, though indicative of the Jays' offensive struggles this was his first multi-RBI game since July 20.

Tampa struck right back for a pair of runs as Dickey continued to struggle in the top half of the fifth. After yielding a Forsythe single and hitting Longoria in the back, Dickey surrendered a two-run double to Miller, the score back even at 4-4.

That was the end of the night for Dickey, who gave up four earned runs over only 4 1/3 innings. It was the fourth time in his last five starts that Dickey allowed at least four earned runs, his ERA now standing at 4.61.

After threatening in the sixth, the Jays exploded in the seventh with a three-run rally that ultimately won them the game. Michael Saunders, Troy Tulowitzki and a pinch-hitting Russell Martin all walked to load the bases before Travis cashed in with a single up the middle, scoring the go-ahead run.

Bautista then ripped a double to the alley in left-centre, scoring a pair for the 7-4 lead. The Jays right fielder finished with three RBIs.

Roberto Osuna surrendered a solo home run to Forsythe in the ninth, but still notched his 25th save of the season to seal the win.

The Jays played without centrefielder Kevin Pillar for the second straight day. He was placed on the 15-day DL earlier Monday with a sprained left thumb and was replaced in centre by Melvon Upton Jr., who went 1-4 in the opener against the Rays.