PDF and Ruby on Rails

Hi,
I am sticking in one problem. Please help me out. The problem is
like:

What problems can arise when users hits the get_pdf action?
If there are problems, how can it be solved?

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

Srimanta C. wrote in post #1043855:

Thanks everybody I have solved this problem.

On 3 February 2012 09:33, Srimanta C. [email protected]
wrote:

Thanks everybody I have solved this problem.

Would you like to contribute your solution so that anyone searching
for the same problem could benefit from your experience?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs