gmaps4rails repeating partials for markers
问题 I am having difficulty with gmaps4rails infowindow. I have an app which successfully displays multiple markers using json data stored in activerecord. I created a partial to select additional info to display in the infowindow, but the same data from the first instance of PoliceAlert class is being repeated in each marker: Controller: class StaticPagesController < ApplicationController def main @police_alerts = PoliceAlert.all @police_hash = Gmaps4rails.build_markers(@police_alerts) do |police