Displaying 1 result from an estimated 1 matches for "pdf_name".
Did you mean:
pdc_name
2007 Dec 21
1
Princely - Prince XML PDF Wrapper Plugin
...ment a PDF! Simply make your XHTML or XML
template and use pdf as the format (e.g. show.pdf.erb), then add code
similar to this in your controller:
class PagesController < ApplicationController
def show
respond_to do |format|
format.html
format.pdf {
render :pdf => @page.pdf_name,
:template => "show.pdf.erb", # not required, shown for
example
:layout => false # not required
}
end
end
end
And that''s all there is to it! If you add a .pdf to your properly
routed path, you should be presented with a PDF...