Crafting Rails Plugins
summary
A live walkthrough shows how to package features as a gem that hooks into Rails lifecycle, using Railtie and mountable engine patterns to add routes, migrations, models, controllers, views and configuration. Code examples demonstrate mounting an engine in a sample app, writing an initializer hook to inject middleware, and shipping a migration with the gem; the demo gem runs in the app without manual edits, proving the approach works end to end.
AI-written summary · about
chapters (5)
- 0:00Introduction to Rails plugins
- 10:59Why create Rails plugins
- 22:28Building plugin structure
- 33:09Testing plugins effectively
- 40:55Deploying and maintaining plugins








