How To Generate PDFs in Rails With Prawn(my own blog ) (reference link http://www.railstips.org/blog/archives/2008/10/13/how-to-generate-pdfs-in-rails-with-prawn/)