Using Rails without Rails
summary
Demonstrates extracting Rails pieces and wiring them standalone: uses ActionView::LookupContext + ActionView::Renderer + ActionView::Context to render templates and rendered with layouts by adding two lines of includes, shows converting a resource into the view context (no controller) so helpers must be explicitly provided, integrates ActionView into a Webmachine resource, and uses the Journey router to route to different Rack apps; code runs and is published as gists.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:51Experimenting with Rails internals
- 3:41Rails modularity approach
- 5:46Minimal Rails controller
- 8:39Layouts and helpers
- 10:08Good design in Rails internals
- 11:57Action View rendering
- 15:35Action View with Webmachine
- 18:52Action View Context
- 20:37Tips for Rails internals
- 22:44Rails router internals
- 26:22Summary
related talks
28mDissecting Rails
42mRender It! A Deep Dive into ActionView and Template Engines
26mDissecting Rails - a different approach to learning Rails
35mFrontendless Rails frontend
42mYou've got a Sinatra on your Rails
37mInside Rails...
46mRails as a piece of birthday cake
27mBuilding a Rails Controller From Scratch
