used Rails.root in download_pdf