I made vanilla test app to try out to customize the infobox as noted in wiki https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Markers. However I seem to blunder in the step of passing the (info box's extended) options to gmaps4rails. Where exactly the javascript in step 2 is supposed to go? If I just add it to the end of the page rendering (after the :scripts part) I'm greeted with javascript error 'ReferenceError: Can't find variable: Gmaps4' .
I made vanilla test app to try out to customize the infobox as noted in wiki https://github.com/apneadiving/Google-Maps-for-Rails/wiki/Markers. However I seem to blunder in the step of passing the (info box's extended) options to gmaps4rails. Where exactly the javascript in step 2 is supposed to go? If I just add it to the end of the page rendering (after the :scripts part) I'm greeted with javascript error 'ReferenceError: Can't find variable: Gmaps4' .