aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAgis Anastasopoulos <corestudiosinc@gmail.com>2012-11-15 14:08:09 +0200
committerAgis Anastasopoulos <corestudiosinc@gmail.com>2012-11-15 14:08:09 +0200
commit168f5b1cd70c211776f735a0f63c8c5c87105441 (patch)
tree5c6951125de9e2bb67b92a974f07afcbe5abdcf7
parent08bf5492bfbfea4a419501036b60ea648aa3057e (diff)
downloadrails-168f5b1cd70c211776f735a0f63c8c5c87105441.tar.gz
rails-168f5b1cd70c211776f735a0f63c8c5c87105441.tar.bz2
rails-168f5b1cd70c211776f735a0f63c8c5c87105441.zip
Add a note for the example in Setting Custom Headers
-rw-r--r--guides/source/action_controller_overview.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/action_controller_overview.md b/guides/source/action_controller_overview.md
index 947baee385..9a8441d5a2 100644
--- a/guides/source/action_controller_overview.md
+++ b/guides/source/action_controller_overview.md
@@ -616,6 +616,8 @@ If you want to set custom headers for a response then `response.headers` is the
response.headers["Content-Type"] = "application/pdf"
```
+Note: in the above case it would make more sense to use the `content_type` setter directly.
+
HTTP Authentications
--------------------