Building a Rails Engine From Scratch: Active Storage Dashboard
summary
Explains a small open source Active Storage Dashboard gem that ships a working admin UI, pagination, filters and rake tasks and intentionally keeps zero dependencies to avoid breaking host apps. Shows concrete techniques: runtime feature detection for multi Rails and DB support (including Oracle SQL fallbacks), storing class names as strings to avoid load order bugs, and a configurable base controller for host-driven authentication plus reusable filter classes and service objects.
AI-written summary · about
chapters (12)
- 0:00Rails engines introduction
- 3:59Why engines matter
- 5:05Isolate namespace in engines
- 7:32Configuring defaults
- 9:57Authentication in controllers
- 11:46Database compatibility
- 12:28Multiple Rails versions
- 13:54Minimizing dependencies
- 15:19Service classes for logic
- 16:42Filter classes for controllers
- 17:26Host app compatibility
- 18:29Q&A
related talks
22mChecking under the Hood: A guide to Rails Engines
42mDiary of a Mad Rails Engineer
38mAll you need is Rails (Engines): Compartmentalising your Monolith
31mActiveSupport and ActiveModel
38mHere’s to the crazy ones
42mPowerful Rails Features You Might Not Know
21mBuilding a Performance Analytics Tool with ActiveSupport
35mThe State of the Ruby AI Toolbox
