user_data = {
:lon => contact.home_lon,
:lat => contact.home_lat,
- :icon => type == "friend" ? "marker-blue.png" : "marker-green.png",
+ :icon => image_path(type == "friend" ? "marker-blue.png" : "marker-green.png"),
:description => render(:partial => "popup", :object => contact, :locals => {:type => type})
}
%>