Crafting Rails Plugins
summary
Explains how to build a Rails plugin that actually hooks into the Rails lifecycle to add routes, configuration, migrations and to ship models, controllers, views. Uses concrete example gems and walks through their code layout, engine API, and generator hooks, showing how files get mounted and migrations run in a host app. Demonstrates a working plugin scaffold and the minimal changes required for it to boot and serve endpoints.
AI-written summary · about
chapters (6)
- 0:00Introduction to Rails plugins
- 9:58Why create Rails plugins
- 17:40Plugin structure basics
- 27:58Testing your plugin
- 35:57Publishing to RubyGems
- 40:55Q&A and wrap-up
related talks
37mCreating Mountable Engines
19mMaster the Rails asset pipeline
51mRails Engines Patterns
34mCode Spelunking: teach yourself how Rails works
38mAll you need is Rails (Engines): Compartmentalising your Monolith
20mMaster the Rails Asset Pipeline: Best Practices for Apps & Gems
28mDissecting Rails
42mDiary of a Mad Rails Engineer
