David Ng said about 5 years ago on Creating PDF files with WickedPDF :
There is a typo in product_controllers.rb. Guess it should be template rather than **tempate**.