Rack - A Framework to Roll Your Own
summary
Shows how Rack’s actual call contract returns [status headers body] and how config.ru is evaluated inside a Rack::Builder stack so middleware like Rack::Reloader, Rack::ShowExceptions and Rack::Lint run by default. Builds a tiny framework (justrails) that autoloads controllers via an ActiveSupport-style inflector, renders views with Tilt templates, exposes each controller action as a Rack app (proc), implements routing with a simple hashmap, demos on config.ru on port 9292 and mentions a toy server (Chou) listening on port 4321.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:20What is Rack
- 3:38Rack compliant applications
- 4:51Web architecture
- 5:43Rack Builder
- 10:30Rack Up
- 13:41Rack Applications
- 19:02Control
- 24:41Autoloading
- 25:01View Implementation
- 28:31Rack Application
- 35:41Other Options
related talks
28mRack for web developers
30mThe Power of Middleware - Building Your Own Mini Web Framework on Rack
37mRuby on Rack: The Magic Between Request and Response
38mRewriting Rack: A Functional Approach
28mIn a World of Middleware, Who Needs Monolithic Applications
48mFrom Rails to Rack: Making Rails 3 a Better Ruby Citizen
55mThe Future of Rack
22mRack Middleware as a General Purpose Abstraction
