所以我正在使用bhedana的google_maps插件并构建了一个搜索加载页面渲染的点。
让我的所有观点都令人耳目一新page.replace_html 'locations', :partial => 'locations'
但是当我加入
时page.replace_html 'map', :partial => 'map'
在同一个rjs文件中,并且部分看起来像
<%= @map.to_html %>
<div style="width: 400px; height: 350px;">
<%= @map.div %>
</div>
我提交时地图无法显示。有人有什么想法吗?
答案 0 :(得分:0)
让它成功了。很多代码......