Not rendering field values when collection is not a hash

When passing a Array of ActiveRecord objects instead of a hash as the Collection, @record didn't receive any value leaving it as nil.