0
我下面的教程來填寫PDF和發送到瀏覽器...但出現錯誤:軌的respond_to pdf格式
ActionController::UnknownFormat (ActionController::UnknownFormat):
app/controllers/registries/customers_controller.rb:113:in `print_bollettino_2’
112 def print_bollettino_2
113 respond_to do |format|
114 format.pdf { send_file BollettinoUtente2Sezioni.new(@customer).export, type: 'application/pdf' }
115 end
116 end
你能幫助我嗎?
非常感謝,
問候