He won a World Series ring with the 1997 Florida Marlins and a pennant in 2004 with St. Louis , but struggled during a pair of one-season stints in the AL , with Boston in 2005 and Detroit this year .