Skip to content

Commit

Permalink
rename section
Browse files Browse the repository at this point in the history
  • Loading branch information
fcheung committed Jan 19, 2009
1 parent e8c50fc commit a0b2223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/doc/guides/source/form_helpers.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ As a rule of thumb you should be using `date_select` when working with model obj


NOTE: In many cases the built in date pickers are clumsy as they do not aid the user in working out the relationship between the date and the day of the week. NOTE: In many cases the built in date pickers are clumsy as they do not aid the user in working out the relationship between the date and the day of the week.


File Uploads Uploading Files
-------------- --------------
A common task is uploading some sort of file, whether it's a picture of a person or a CSV file containing data to process. The most important thing to remember with file uploads is that the form's encoding *MUST* be set to multipart/form-data. If you forget to do this the file will not be uploaded. This can be done by passing `:multi_part => true` as an HTML option. This means that in the case of `form_tag` it must be passed in the second options hash and in the case of `form_for` inside the `:html` hash. A common task is uploading some sort of file, whether it's a picture of a person or a CSV file containing data to process. The most important thing to remember with file uploads is that the form's encoding *MUST* be set to multipart/form-data. If you forget to do this the file will not be uploaded. This can be done by passing `:multi_part => true` as an HTML option. This means that in the case of `form_tag` it must be passed in the second options hash and in the case of `form_for` inside the `:html` hash.


Expand Down

0 comments on commit a0b2223

Please sign in to comment.