ActionController::DataStreaming β Methods for sending arbitrary data and for streaming files to the browser, instead of rendering.
| Use Case | Command | Description |
|---|---|---|
| π€ Send arbitrary data | send_data(data, options = {}) | Stream binary data directly to the client. |
| π Send a file | send_file(path, options = {}) | Stream an existing file from the filesystem to the client. |
Methods for sending arbitrary data and for streaming files to the browser, instead of rendering.
send_data β Sends binary data as a stream to the client. Accepts options like :type (MIME type), :disposition (inline or attachment), :filename.send_file β Sends a file from the serverβs filesystem. Accepts options like :type, :disposition, :filename, :status.Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 03:15 @216.73.217.46
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format