I\'m creating PDF by using Rails gem PDFKit. The main content is rendering but I want to show number of pages in PDF footer.
html = ERB.new(File.read(Rails.root.j