사용자가 get_pdf 작업을 수행 할 때 어떤 문제가 발생할 수 있습니까? 문제가있는 경우 어떻게 해결할 수 있습니까?PDF와 Ruby on Rails
class PdfController < ApplicationController
def get_pdf
send_data Pdf.create(params[:contents])
end
end
class Pdf
def self.create(contents)
make_pdf(contents) # takes 30 seconds to run
end
end