We need to pass the name when deleting the cookie

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@93 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2004-12-09 11:38:44 +00:00
parent ad354b207a
commit 586aa2f2b7
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ module ActionController #:nodoc:
# Removes the cookie on the client machine by setting the value to an empty string. # Removes the cookie on the client machine by setting the value to an empty string.
def delete(name) def delete(name)
set_cookie(name, "value" => "") set_cookie(name, "name" => name, "value" => "")
end end
private private