Module ActionController::Streaming
In: lib/rupdf/action_controller.rb

Methods

Constants

Export = Struct.new("Export", :data, :content_type, :name)

Public Instance methods

[Source]

    # File lib/rupdf/action_controller.rb, line 14
14:     def send_pdf(pdf_data)
15:       export = Export.new(pdf_data, 'application/pdf', 'report.pdf')
16:       send_to_browser(export)
17:     end

[Source]

    # File lib/rupdf/action_controller.rb, line 7
 7:     def send_to_browser(export)
 8:       send_data(export.data, 
 9:       :filename => export.name, 
10:       :content_type => export.content_type,
11:       :disposition => "inline")
12:     end

[Validate]