Render for Rails and Sockets(inline) - shairontoledo/rghost GitHub Wiki
Behaves like render but returns content file after conversion.
Example with Rails
def my_action
doc=RGhost::Document.new
#do something
send_data doc.render_stream(:pdf), :filename => "/tmp/myReport.pdf"
end
See more Printing