send_file(path, options = {})
Instance Protected methods
Sends the file. This uses a server-appropriate method (such as X-Sendfile)
via the Rack::Sendfile middleware. The header to use is set via
config.action_dispatch.x_sendfile_header. Your server can also
configure this for you by setting the X-Sendfile-Type header.
Be careful to sanitize the path parameter if it is coming from a web page.
send_file(params[:path]) allows a malicious user to download
any file on your server.
Opti