rails-latex is a renderer for rails 3 which allows tex files with erb to be turned into an inline pdf.