apneadiving/Google-Maps-for-Rails — Issue #133: Marker.sidebar marker.title missing from @JSON
Author: jmangoubi
Created: 2011-12-31 18:59:38+00:00
State: open

@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