Skip to content

Instantly share code, notes, and snippets.

@pengwynn
Created September 14, 2011 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pengwynn/1217705 to your computer and use it in GitHub Desktop.
Save pengwynn/1217705 to your computer and use it in GitHub Desktop.
- points = Project.all.each.map {|p| { "title": p.title, "description": p.description, "lat": p.lat, "lng": p.lng } }
/ This is the array I'm shooting for.
/ points = [
/ { title:'Some Place', description:'Descriptive description.', lat:-34.397, lng:150.644 }
/ { title:'Some Other Place', description:'Descriptive description.', lat:-33.397, lng:150.644 }
/ { title:'Distant Place', description:'Descriptive description.', lat:-31.397, lng:150.644 }
/ ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment