Loading a yaml File

Hi there.

I have a yaml file like this:

I think you need to change the file along these lines:

person1:
  first_name: paul
  age: 23
person2:
  first_name:peter
  age: 26
person3
  first_name: luc
  age: 40

That structure should give you a hash to iterate:
{
"person1"=>{"first_name"=>"paul","age"=> 23},
"person2"=>{"first_name"=>"pierre","age"=> 26},
"person3"=>{"first_name"=>"luc"","age"=> 40}
}