I get an error message when i try to upload content to my database. Is there something wrong with my loop?
titles => array contains about 200 titles links => array contains about 200 links
titles.zip(links).each do |title, link| if title.to_s.include? "Groep 3" @list = List.new(:title => title, :link => link, :publisher => 'Malmberg', :group => 'Groep 3', :method => 'Taal op Maat') elsif title.to_s.include? "Groep 4" @list = List.new(:title => title, :link => link, :publisher => 'Malmberg', :group => 'Groep 4', :method => 'Taal op Maat') elsif title.to_s.include? "Groep 5" @list = List.new(:title => title, :link => link, :publisher => 'Malmberg', :group => 'Groep 5', :method => 'Taal op Maat') elsif title.to_s.include? "Groep 6" @list = List.new(:title => title, :link => link, :publisher => 'Malmberg', :group => 'Groep 6', :method => 'Taal op Maat') elsif title.to_s.include? "Groep 7" @list = List.new(:title => title, :link => link, :publisher => 'Malmberg', :group => 'Groep 7', :method => 'Taal op Maat') elsif title.to_s.include? "Groep 8" @list = List.new(:title => title, :link => link, :publisher => 'Malmberg', :group => 'Groep 8', :method => 'Taal op Maat') end end