From 0b554201bb2deb6bbb23de9b00aebd53b134921b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 16 Dec 2004 17:45:37 +0000 Subject: Updated documentation git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@194 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/cookies.rb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'actionpack/lib/action_controller/cookies.rb') diff --git a/actionpack/lib/action_controller/cookies.rb b/actionpack/lib/action_controller/cookies.rb index 6b9954f84d..76ca12e913 100644 --- a/actionpack/lib/action_controller/cookies.rb +++ b/actionpack/lib/action_controller/cookies.rb @@ -10,15 +10,19 @@ module ActionController #:nodoc: # # cookies["user_name"] # => "david" # cookies.size # => 2 + # + # Example for deleting: + # + # cookies.delete "user_name" # # All the option symbols for setting cookies are: # - # value:: the cookie's value or list of values (as an array). - # path:: the path for which this cookie applies. Defaults to the root of the application. - # domain:: the domain for which this cookie applies. - # expires:: the time at which this cookie expires, as a +Time+ object. - # secure:: whether this cookie is a secure cookie or not (default to false). - # Secure cookies are only transmitted to HTTPS servers. + # * value - the cookie's value or list of values (as an array). + # * path - the path for which this cookie applies. Defaults to the root of the application. + # * domain - the domain for which this cookie applies. + # * expires - the time at which this cookie expires, as a +Time+ object. + # * secure - whether this cookie is a secure cookie or not (default to false). + # Secure cookies are only transmitted to HTTPS servers. module Cookies # Returns the cookie container, which operates as described above. def cookies -- cgit v1.2.3