RailsCasts Pro episodes are now free!

Learn more or hide this

jfquarite's Profile

GitHub User: jfquarite

Comments by

Avatar

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?