Skip to content

Instantly share code, notes, and snippets.

@jonpaul
Created July 12, 2011 02:58
Show Gist options
  • Save jonpaul/1077306 to your computer and use it in GitHub Desktop.
Save jonpaul/1077306 to your computer and use it in GitHub Desktop.
How do I rewrite this for haml?
<% content_for(:javascript) do %>
locations = [];
<% @locations.each do |loc|%>
locations.push(new google.maps.LatLng(<%=loc.lat%>, <%=loc.lon%>));
<%end%>
<%end%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment