send_data(data, options = {})
Instance Protected methods
Sends the given binary data to the browser. This method is similar to
render plain: data, but also allows you to specify whether the
browser should display the response as a file attachment (i.e. in a
download dialog) or as inline data. You may also set the content type, the
apparent file name, and other things.
Options:
:filename - suggests a filename for the browser to use.
:type - specifies an HTTP content type. Default