我用过geocoder gem
我怎样才能把iframe安装到image_tag上呢?
<%= image_tag "http://maps.google.com/maps/api/staticmap?size=450x300&sensor=false&zoom=16&markers=#{@presale.latitude}%2C#{@presale.longitude}", width: "300", height:"200" %>我想要相同的代码,但如果使用iframe,请帮助我
发布于 2015-08-06 13:01:19
试试这个
<%= content_tag(:iframe,'', width: 300, height: 200, src: "http://maps.google.com/maps/api/staticmap?size=450x300&sensor=false&zoom=16&markers=#{@presale.latitude}%2C#{@presale.longitude}") %>https://stackoverflow.com/questions/31847153
复制相似问题