From ebee0a742d40f87bb9b78d5d88393c341761cfad Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 17 May 2007 20:48:47 +0000 Subject: 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 --- actionpack/lib/action_controller/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller') 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] -- cgit v1.2.3