mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Include location header in args.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6774 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -67,8 +67,7 @@ HTML
|
||||
end
|
||||
|
||||
def create
|
||||
headers['Location'] = 'created resource'
|
||||
head :created
|
||||
head :created, :location => 'created resource'
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user