Merge pull request #39736 from mehagar/docs-cookie

Remove reference to deleting sessions via nil [ci-skip]
This commit is contained in:
Vipul A M 2020-07-31 08:52:12 +05:30 committed by GitHub
commit d5a0e0faa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ class CommentsController < ApplicationController
end
```
Note that while for session values you set the key to `nil`, to delete a cookie value you should use `cookies.delete(:key)`.
Note that while for session values you can set the key to `nil`, to delete a cookie value you should use `cookies.delete(:key)`.
Rails also provides a signed cookie jar and an encrypted cookie jar for storing
sensitive data. The signed cookie jar appends a cryptographic signature on the