Platinum Partner

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) %>
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}