aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/action_controller_overview.textile
diff options
context:
space:
mode:
authorAndreas Scherer <andreas_coder@freenet.de>2009-02-17 15:05:28 +0100
committerAndreas Scherer <andreas_coder@freenet.de>2009-02-17 15:05:28 +0100
commit71947e30cc102e8512d76932dee015802a314d32 (patch)
tree69d93db61abeb2ca782d21a00a14389b237762a4 /railties/guides/source/action_controller_overview.textile
parent48791dda34530f1221c48740857173c267f677ca (diff)
downloadrails-71947e30cc102e8512d76932dee015802a314d32.tar.gz
rails-71947e30cc102e8512d76932dee015802a314d32.tar.bz2
rails-71947e30cc102e8512d76932dee015802a314d32.zip
Fix two errors.
Missing article added. Consistent (at least in this file) use of abbreviation.
Diffstat (limited to 'railties/guides/source/action_controller_overview.textile')
-rw-r--r--railties/guides/source/action_controller_overview.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/action_controller_overview.textile b/railties/guides/source/action_controller_overview.textile
index 84d98dd6ed..949a962b27 100644
--- a/railties/guides/source/action_controller_overview.textile
+++ b/railties/guides/source/action_controller_overview.textile
@@ -589,7 +589,7 @@ With this in place, you can create namespaced controllers that inherit from +Adm
h4. HTTP digest authentication
-HTTP digest authentication is superior to the basic authentication as it does not require the client to send unencrypted password over the network (though HTTP basic authentication is safe over HTTPS). Using digest authentication with Rails is quite easy and only requires using one method, +authenticate_or_request_with_http_digest+.
+HTTP digest authentication is superior to the basic authentication as it does not require the client to send an unencrypted password over the network (though HTTP basic authentication is safe over HTTPS). Using digest authentication with Rails is quite easy and only requires using one method, +authenticate_or_request_with_http_digest+.
<ruby>
class AdminController < ApplicationController
@@ -656,7 +656,7 @@ class ClientsController < ApplicationController
end
</ruby>
-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 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.