YM4R Configuration With Multiple Domains
Join the DZone community and get the full member experience.
Join For FreeNeed to put domains in config/gmaps_api_key.yml
production:
host.com: longapikeythatmakesnosense
anotherhost.com: jsdkfljskfljsgklsjgkl
When 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.
Comments