2014-02-12 32 views
1

我正在使用stubhub API,并希望使用为每个事件对象返回的image_url属性。目前,该API返回一个字符串,它看起来像这样的图像:Stubhub API映像网址

"stubhub_472291_MortonMeyerson_Concert.png" 

我希望能够让我为每个图像的正确URL插值这在我的Rails应用程序。

回答

0
"http://www.stubhub.com/data/venue_maps/#{event.geography_parent}/#{event.image_url}"