diff options
author | Frederick Cheung <frederick.cheung@gmail.com> | 2009-01-25 23:56:11 +0000 |
---|---|---|
committer | Frederick Cheung <frederick.cheung@gmail.com> | 2009-01-25 23:59:31 +0000 |
commit | b3fd79d82d6c8124a62dbfc3c100d755fc2a4cd6 (patch) | |
tree | 766b7722baa2dacfe15f34685e7b44cbfa76c17e /railties | |
parent | 16f2215d29580919a1b7c3d8c11a4b7ef8efcb99 (diff) | |
download | rails-b3fd79d82d6c8124a62dbfc3c100d755fc2a4cd6.tar.gz rails-b3fd79d82d6c8124a62dbfc3c100d755fc2a4cd6.tar.bz2 rails-b3fd79d82d6c8124a62dbfc3c100d755fc2a4cd6.zip |
Rails.root instead of RAILS_ROOT
Diffstat (limited to 'railties')
-rw-r--r-- | railties/doc/guides/source/form_helpers.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/form_helpers.txt b/railties/doc/guides/source/form_helpers.txt index b09cc530ee..9c965c2a7d 100644 --- a/railties/doc/guides/source/form_helpers.txt +++ b/railties/doc/guides/source/form_helpers.txt @@ -579,7 +579,7 @@ Rails provides the usual pair of helpers: the barebones `file_field_tag` and the What gets uploaded ~~~~~~~~~~~~~~~~~~ -The object in the `params` hash is an instance of a subclass of IO. Depending on the size of the uploaded file it may in fact be a StringIO or an instance of File backed by a temporary file. In both cases the object will have an `original_filename` attribute containing the name the file had on the user's computer and a `content_type` attribute containing the MIME type of the uploaded file. The following snippet saves the uploaded content in `#\{RAILS_ROOT\}/public/uploads` under the same name as the original file (assuming the form was the one in the previous example). +The object in the `params` hash is an instance of a subclass of IO. Depending on the size of the uploaded file it may in fact be a StringIO or an instance of File backed by a temporary file. In both cases the object will have an `original_filename` attribute containing the name the file had on the user's computer and a `content_type` attribute containing the MIME type of the uploaded file. The following snippet saves the uploaded content in `#\{Rails.root\}/public/uploads` under the same name as the original file (assuming the form was the one in the previous example). [source, ruby] ----------------- |