Created
September 14, 2011 20:34
-
-
Save pengwynn/1217705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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