Ruby code that generates html