diff --git a/db/dev_seeds/polls.rb b/db/dev_seeds/polls.rb index 105b32e13..8712ce827 100644 --- a/db/dev_seeds/polls.rb +++ b/db/dev_seeds/polls.rb @@ -52,8 +52,8 @@ section "Creating Poll Questions & Answers" do end end question.save! - Faker::Lorem.words((2..4).to_a.sample).each do |title| - description = "

#{Faker::Lorem.paragraphs.join("

")}

" + Faker::Lorem.words((2..4).to_a.sample).each_with_index do |title, index| + description = "

#{Faker::Lorem.paragraphs.join('

')}

" answer = Poll::Question::Answer.new(question: question, title: title.capitalize, description: description,