Fixing ruby template examples

Incorrect iterator in example; need to loop over the results hash array.