Skip to content

Instantly share code, notes, and snippets.

@sandsu
Created June 4, 2012 00:38
Show Gist options
  • Save sandsu/2865644 to your computer and use it in GitHub Desktop.
Save sandsu/2865644 to your computer and use it in GitHub Desktop.
@campaign = Campaign.new
10.times do
q = Question.new
5.times do
q.default_answers.build
end
@campaign.questions<<q
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment