DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
YM4R Configuration With Multiple Domains
Need 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) %>




