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

Snippets has posted 5883 posts at DZone. View Full User Profile

YM4R Configuration With Multiple Domains

09.09.2008
| 1859 views |
  • submit to reddit
        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) %>