Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Ruby と Rails のざっくりとした Cookie の扱い方
Search
KH
July 30, 2024
20
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Ruby と Rails のざっくりとした Cookie の扱い方
KH
July 30, 2024
More Decks by KH
See All by KH
ファシリテーションテクニック / facilitation technic
kh777
0
18
Queryオブジェクトとは / What is a Query Object in Rails?
kh777
0
19
Ruby Silverを取得してみた
kh777
0
47
進数を学ぼう!(Rubyの事例)
kh777
0
60
睡眠テクニックを身につける / sleep-technique
kh777
0
72
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
46
8.3k
Optimising Largest Contentful Paint
csswizardry
37
4k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
850
Building AI with AI
inesmontani
PRO
1
1.3k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
460
Utilizing Notion as your number one productivity tool
mfonobong
4
620
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Side Projects
sachag
456
43k
4 Signs Your Business is Dying
shpigford
187
23k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
Transcript
Ruby と Rails の ざっくりとした Cookie の扱い方
2024年6月27日からベータ版の提供をスタート オートレイアウトや豊富なテンプレートが使える 2025年初めごろに無料プランと有料プランが 開始予定 余談 Figma Slides でスライドを作成してみた
そもそも Cookie とは? ・ブラウザごとに保存される小さなデータファイル ・アプリケーションサーバーで Cookieを発行し、クライアントに保存する ・ログイン状態の保持やショッピングカートの保存等に使われる
Ruby の Cookie の扱い方 ・CGI::Cookie クラスで Cookie オブジェクトを扱うことができる ・Rails の
cookies メソッドが主流のため、情報量が少ない ・CGI::Cookie.new で Cookie オブジェクトを作成できる →
Rails の Cookie の扱い方 ・主に ActionDispatch::Cookies モジュールが提供する cookies メソッドを
使って Cookie を保存する ・rails_same_site_cookie、cookies_eu、jquery-cookie-rails など さまざまな gem が存在する ・ActionDispatch::Session::CookieStore を使って、セッションを Cookie に 保存できるようになる