Fixing ruby example with attachments collection