aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-11-26 02:04:35 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-11-26 02:04:35 +0000
commitd0c90331f19004f9f297989785f1516631ea0fc3 (patch)
treeb10ab040e13e1b6dc659364857ae91d8b128dc58 /actionpack/CHANGELOG
parentb62937acbd5c14d6499f4e45f4b821043a826044 (diff)
downloadrails-d0c90331f19004f9f297989785f1516631ea0fc3.tar.gz
rails-d0c90331f19004f9f297989785f1516631ea0fc3.tar.bz2
rails-d0c90331f19004f9f297989785f1516631ea0fc3.zip
Added a new container for cookies that makes them more intuative to use. The old methods of cookie and @cookies have been deprecated.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@20 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG17
1 files changed, 14 insertions, 3 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 87280683fc..eedef92916 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,9 +1,20 @@
*SVN*
-* Added ActionController#cookies[]= as an alias for cookie "name", "value" -- you'll still need to use the latter if you have options to set.
+* Added a new container for cookies that makes them more intuative to use. The old methods of cookie and @cookies have been deprecated.
-* Added ActionController#cookies[] as a reader for @cookies that'll return the value of the cookie instead of the cookie object itself.
- NOTE: If you were using the old accessor, this could potentially break your code -- if you expect a full cookie object!
+ Examples for writing:
+
+ cookies["user_name"] = "david" # => Will set a simple session cookie
+ cookies["login"] = { "value" => "XJ-122", "expires" => Time.now + 360} # => Will set a cookie that expires in 1 hour
+
+ Examples for reading:
+
+ cookies["user_name"] # => "david"
+ cookies.size # => 2
+
+ Read more in ActionController::Cookies
+
+ NOTE: If you were using the old accessor (cookies instead of @cookies), this could potentially break your code -- if you expect a full cookie object!
* Added the opportunity to defined method_missing on a controller which will handle all requests for actions not otherwise defined #223 [timb]