diff options
author | Mikhail Dieterle <MikDiet@gmail.com> | 2014-08-24 12:27:27 +0300 |
---|---|---|
committer | Mikhail Dieterle <MikDiet@gmail.com> | 2014-08-24 12:27:27 +0300 |
commit | 52f430f6cc3b417d587a360dafed982eb2182244 (patch) | |
tree | eabb83ebd7620de5cc4f55f00e133cede5a94192 | |
parent | 10db166aef3ac99183b8360512f62a1a2685ae40 (diff) | |
download | rails-52f430f6cc3b417d587a360dafed982eb2182244.tar.gz rails-52f430f6cc3b417d587a360dafed982eb2182244.tar.bz2 rails-52f430f6cc3b417d587a360dafed982eb2182244.zip |
code quotes for classname
-rw-r--r-- | guides/source/form_helpers.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md index 048eb9a6e3..1c57528db6 100644 --- a/guides/source/form_helpers.md +++ b/guides/source/form_helpers.md @@ -623,7 +623,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). ```ruby def upload |