RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: jfquarite
But... how can I change this
def new @survey = Survey.new 3.times do question = @survey.questions.build 4.times { question.answers.build } end end
In order to build as much as I want?
But... how can I change this
def new
@survey = Survey.new
3.times do
question = @survey.questions.build
4.times { question.answers.build }
end
end
In order to build as much as I want?