I want to do something like this,
for topic.sections.each do |section| and topic.questions.each do |question|
print section
print question
end
I want both sections and questions simultaneously, the output will be like this: section 1 question 1
section 2 question 2
I know what i did there is foolish, but, what is the exact way to do this or is this even possible?
sections,questionscontains? and What is the expected output?