Using Google Map Headers (YM4R) on Heroku
Posted
by Kevin
on Stack Overflow
See other posts from Stack Overflow
or by Kevin
Published on 2010-05-28T00:02:46Z
Indexed on
2010/05/30
3:12 UTC
Read the original article
Hit count: 203
I have the following at the top of my view:
<%= GMap.header %>
Heroku is giving me an ActionView::TemplateError on that line.... this works on my own machine but not on Heroku.... why is that? Is there something about Heroku that doesn't allow?
In the final compile on the browser, the above code translates into this on the client side:
<script src="http://maps.google.com/maps?file=api&v=2.x&key=XXXXX;hl=&sensor=false" type="text/javascript">
</script>
<script src="/javascripts/ym4r-gm.js" type="text/javascript"></script>
© Stack Overflow or respective owner