Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove unecessary word

  • Loading branch information...
commit 2d7ea2cc2ba780a113e34b3cb8524eb6b1bd71f2 1 parent f76b64c
@agis- agis- authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  guides/source/action_controller_overview.md
View
2  guides/source/action_controller_overview.md
@@ -713,7 +713,7 @@ This will read and stream the file 4kB at the time, avoiding loading the entire
If `:type` is not specified, it will be guessed from the file extension specified in `:filename`. If the content type is not registered for the extension, `application/octet-stream` will be used.
-WARNING: Be careful when using data coming from the client (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.
+WARNING: Be careful when using data coming from the client (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.
TIP: It is not recommended that you stream static files through Rails if you can instead keep them in a public folder on your web server. It is much more efficient to let the user download the file directly using Apache or another web server, keeping the request from unnecessarily going through the whole Rails stack.
Please sign in to comment.
Something went wrong with that request. Please try again.