Displaying 2 results from an estimated 2 matches for "pdfcontrol".
Did you mean:
dscontrol
2005 Sep 22
0
All caps in controller names
Are controller names allowed to have all caps, like PDFController?
I created a controller called PDFController with the generator and it croaks
with an unknown constant PdfHelper error. Is that not the convention?
I reported this as a bug, but now I''m not so sure because the wiki doesn''t
recognize PDFController as a valid wiki word.
-Je...
2012 Feb 03
2
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
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed t...