Skip to content

Instantly share code, notes, and snippets.

@oliverbarnes
Created September 30, 2010 17:24
Show Gist options
  • Save oliverbarnes/604954 to your computer and use it in GitHub Desktop.
Save oliverbarnes/604954 to your computer and use it in GitHub Desktop.
Continent.all.each {|c| puts c.name; c.countries.each {|ct| puts " "+ct.name}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment