It works on local environment but in production mode (heroku) don't.
Thank you for this tutorials!
I put this <script src="https://maps.googleapis.com/maps/api/js?key=$API_KEY&callback=initMap" async> </script> on recipes/map.html.erb and i removed all application.js code and meta tag with api key from layouts/application.html.erb because it dosen't work in production. Thanks!
Yes because of `` used on $.getScript(`https://maps.googleapis.com/maps/api/js?key=${google_map}&callback=initMap`); :D