When inspecting js console in chrome there was an error: Object # < Marker > has no method 'infobox'. It´s a clue.
Acording to docs in the Custom infowindows section, step 2 we have to initialize a js code but that didnt work for me.
Then looking inside the gem in main.coffee
infobox: -> false #to let user use custom infoboxes
Setting to true didnt work
The trick for me was to change this line
@infowindow = new InfoBox(@infobox(boxText))
in app/assets/javascripts/gmaps4rails/google/objects/marker.coffee
To the code mentioned in docs.
@infowindow = new InfoBox(
content: boxText
disableAutoPan: false
maxWidth: 0
pixelOffset: new google.maps.Size(-140, 0)
zIndex: null
boxStyle:
background: "url('http://google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.5/examples/tipbox.gif') no-repeat"
opacity: 0.75
width: "280px"
closeBoxMargin: "10px 2px 2px 2px"
closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif"
infoBoxClearance: new google.maps.Size(1, 1)
isHidden: false
pane: "floatPane"
enableEventPropagation: false
)