YM4R Configuration With Multiple Domains
Join the DZone community and get the full member experience.Join For Free
Need to put domains in config/gmaps_api_key.yml
production: host.com: longapikeythatmakesnosense anotherhost.com: jsdkfljskfljsgklsjgklWhen printing out the header information you need to pass the param :host. request.host should do the job.
<%= GMap.header(:host => request.host) %>
Opinions expressed by DZone contributors are their own.