My yaml content: events.yml > https://gist.github.com/visualisierte/6642199
Hello,
i want to iterate over a yaml file to fill HTML markup with content.
But when i do
- data.events.each do |year, event|
%h3.articleSubheadline
= year #works perfectly
.timeBar
.raceSection
- event.each do |name, race| #produce the error
= name
I get the following error:
undefined method `each’ for nil:NilClass
Thank you!