aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-05-17 20:48:47 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-05-17 20:48:47 +0000
commitebee0a742d40f87bb9b78d5d88393c341761cfad (patch)
tree2b1361a3fee810e80ee735bf4dfb7b62bb11ab1e /actionpack/lib
parent4d2b2971583f86e2e2a2c7e9c917292bcdd87e6b (diff)
downloadrails-ebee0a742d40f87bb9b78d5d88393c341761cfad.tar.gz
rails-ebee0a742d40f87bb9b78d5d88393c341761cfad.tar.bz2
rails-ebee0a742d40f87bb9b78d5d88393c341761cfad.zip
Added url_for usage on render :location, which allows for record identification [DHH] (still need to figure out why that test doesnt pass, seems like a test issue)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-xactionpack/lib/action_controller/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index e3b52278ba..7afacd4f69 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -775,7 +775,7 @@ module ActionController #:nodoc:
end
if location = options[:location]
- response.headers["Location"] = location
+ response.headers["Location"] = url_for(location)
end
if text = options[:text]