Skip to content

Instantly share code, notes, and snippets.

@augustl
Forked from anonymous/gist:766404
Created January 5, 2011 14:45
Show Gist options
  • Save augustl/766408 to your computer and use it in GitHub Desktop.
Save augustl/766408 to your computer and use it in GitHub Desktop.
l1 = Laender.create(:short => 'global', :name => 'Global', :img18x12_url => '/images/laender/global.png')
l2 = Laender.create(:short => 'eu', :name => 'Europe', :img18x12_url => '/images/laender/eu.png')
Clan.create(:own => 't', :name => 'Titans', :tag => 'ti', :laender_id => l1.id, :homepage_url => 'www.titans.de.ms')
# or...
Clan.create(:own => 't', :name => 'Titans', :tag => 'ti', :laender => l1, :homepage_url => 'www.titans.de.ms')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment