mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
af954ddd54
In some examples and guides we are recommending to use code like: ```ruby verified_user = User.find_by(id: cookies.signed[:user_id]) ``` My suggestion is to use instead: ```ruby verified_user = User.find_by(id: cookies.encrypted[:user_id]) ``` which invites users to prefer the "newer" encrypted cookies over the "legacy" signed cookies. |
||
---|---|---|
.. | ||
action_cable | ||
rails/generators/channel | ||
action_cable.rb |