~/talk

Inside Active Storage: a code review of Rails' new framework

Talkat RailsConf 2018 · 2018-04-17..04-19· [ruby-on-rails, web-platform]
slides:none on file

Live code review shows Active Storage’s actual architecture: has_one_attached defines methods via class_eval, attach creates a Blob row in active_storage_blobs then calls a Service to move bytes, DiskService literally calls IO.copy_stream, S3 Service uses aws‑sdk‑s3, JavaScript direct uploads put blobs before final attach, variants use MiniMagick, purge_later enqueues an Active Job that calls the service delete, and migrations run with rails active_storage:install.

AI-written summary · about

  1. 0:00Start
  2. 2:30I work for a storage company
  3. 2:54I will talk about Active Storage
  4. 5:09How to use Active Storage
  5. 10:42The main classes of Active Storage
  6. 12:40What is ActiveStorage Service
  7. 13:40Inside Active Storage Service (disk)
  8. 15:03Inside ActiveStorage Service (S3)
  9. 17:18What is ActiveStorage::Blob
  10. 22:20How Active Storage works
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.