2015-07-12 31 views

回答

0

您可以使用此:

<%= image_tag("example.com/#{product.id}.jpg") if product.present? %> 
0

你可以試試這個

<%= image_tag("example.com/".to_s+ product.id.to_s + ".jpg".to_s) if product.present? %> 
相關問題