diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-11-14 17:47:21 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-11-14 17:47:21 +0530 |
commit | c70b993a9e01547de88417cb8fa95b48acbed2db (patch) | |
tree | cc987eb59487964871ed255dc0e570d15ad8c968 /railties/doc/guides/source/actioncontroller_basics/streaming.txt | |
parent | 549b18c9286b6cccf4978093576325fd711dc421 (diff) | |
download | rails-c70b993a9e01547de88417cb8fa95b48acbed2db.tar.gz rails-c70b993a9e01547de88417cb8fa95b48acbed2db.tar.bz2 rails-c70b993a9e01547de88417cb8fa95b48acbed2db.zip |
Merge docrails.
Diffstat (limited to 'railties/doc/guides/source/actioncontroller_basics/streaming.txt')
-rw-r--r-- | railties/doc/guides/source/actioncontroller_basics/streaming.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/actioncontroller_basics/streaming.txt b/railties/doc/guides/source/actioncontroller_basics/streaming.txt index f42480ba25..dc8ebe6d55 100644 --- a/railties/doc/guides/source/actioncontroller_basics/streaming.txt +++ b/railties/doc/guides/source/actioncontroller_basics/streaming.txt @@ -48,7 +48,7 @@ class ClientsController < ApplicationController end ---------------------------- -This will read and stream the file 4Kb at the time, avoiding loading the entire file into memory at once. You can turn off streaming with the `stream` option or adjust the block size with the `buffer_size` option. +This will read and stream the file 4Kb at the time, avoiding loading the entire file into memory at once. You can turn off streaming with the `:stream` option or adjust the block size with the `:buffer_size` option. WARNING: Be careful when using (or just don't use) "outside" data (params, cookies, etc) to locate the file on disk, as this is a security risk that might allow someone to gain access to files they are not meant to see. |