aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/new_base/renderer.rb
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-05-21 14:51:29 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-05-21 14:51:29 -0700
commitad1c90de3a766d12a0906c7cf3772f3bc0e1b445 (patch)
tree911b2e0b1daa62372f1c83c98640f6e968696c6f /actionpack/lib/action_controller/new_base/renderer.rb
parent2daac47d585c5b8f37e4749d6a9a3aea4b989bd0 (diff)
downloadrails-ad1c90de3a766d12a0906c7cf3772f3bc0e1b445.tar.gz
rails-ad1c90de3a766d12a0906c7cf3772f3bc0e1b445.tar.bz2
rails-ad1c90de3a766d12a0906c7cf3772f3bc0e1b445.zip
Added the :xml render option
Diffstat (limited to 'actionpack/lib/action_controller/new_base/renderer.rb')
-rw-r--r--actionpack/lib/action_controller/new_base/renderer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/new_base/renderer.rb b/actionpack/lib/action_controller/new_base/renderer.rb
index 840168397d..2a52eedb59 100644
--- a/actionpack/lib/action_controller/new_base/renderer.rb
+++ b/actionpack/lib/action_controller/new_base/renderer.rb
@@ -79,9 +79,10 @@ module ActionController
end
def _process_options(options)
- status, content_type = options.values_at(:status, :content_type)
+ status, content_type, location = options.values_at(:status, :content_type, :location)
response.status = status.to_i if status
response.content_type = content_type if content_type
+ response.headers["Location"] = url_for(location) if location
end
end
end