Closed jmangoubi closed 12 years ago
@json = User.all.to_gmaps4rails do |user, marker| marker.infowindow render_to_string(:partial => "/users/my_template", :locals => { :object => user}).gsub(/\n/, '').gsub(/"/, '\"') marker.title "bla bla" marker.sidebar "bla bla" marker.json "\"id\": #{user.id}" end
passes this JSON....
[{"description": "20 N. Lasalle Street", "id": 3, "lng": "-87.6324391", "lat": "41.882424"}]
I do not see any of the sidebar or title data in @Json. What am I doing incorrectly? My goal is to pass a partial for both the infowindow and the sidebar.
thank you
It's a mistake and I received a pull request about this.
I intend to release a new version next year , well next week :)
thanks, keep me updated. Great Gem by the way!
Should be good since 1.4.0
passes this JSON....
[{"description": "20 N. Lasalle Street", "id": 3, "lng": "-87.6324391", "lat": "41.882424"}]
I do not see any of the sidebar or title data in @Json. What am I doing incorrectly? My goal is to pass a partial for both the infowindow and the sidebar.
thank you