Add show.pdf.erb template to generate messages PDFs, slight edit to show template. To use it, go to a message and at the end of the URL put .pdf (this is temporary) this will download a pdf, working on a way to choose whether download it or just display it in the browser.