Permalink
Browse files

doc edits [ci skip]

  • Loading branch information...
1 parent 8937600 commit ed1703bcb206a740957c0a93df5f25177dedc0de @vijaydev vijaydev committed May 6, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 actionpack/lib/action_dispatch/middleware/cookies.rb
@@ -26,10 +26,9 @@ def cookie_jar
# # Sets a cookie that expires in 1 hour.
# cookies[:login] = { :value => "XJ-122", :expires => 1.hour.from_now }
#
- # # Sets a signed cookie, which prevents a user from tampering with its value.
+ # # Sets a signed cookie, which prevents users from tampering with its value.
# # The cookie is signed by your app's <tt>config.secret_token</tt> value.
- # # Rails generates this value by default when you create a new Rails app.
- # # Signed cookies must read with the signed method <tt>cookies.signed[:key]</tt>
+ # # It can be read using the signed method <tt>cookies.signed[:key]</tt>
# cookies.signed[:user_id] = current_user.id
#
# # Sets a "permanent" cookie (which expires in 20 years from now).

0 comments on commit ed1703b

Please sign in to comment.