Ruby HTML generation using structured data