Web applications with Ruby (not Rails)
summary
Builds a working web app from scratch using Ruby and Rack with a hand-rolled router (simple case dispatch), controller superclass, Haml views and layouts, and model options: ActiveRecord, Sequel, or raw PG. Shows rendering via Haml with binding to expose controller instance variables, and measures ~700 req/s (1.4 ms) versus Rails ~400 req/s (2.4 ms). Omits sessions, cookies, logging, caching and other infra so it runs and is instructive but not production complete.
AI-written summary · about
chapters (5)
related talks
30mWeb Applications with Ruby (not Rails)
36mBuilding a Ruby web app using the Ruby Standard Library
16mOne Ruby App to Rule Them All
35mWriting web application in Ruby
37mRuby on Rack: The Magic Between Request and Response
24mReusing your frontend JS on the server with The Ruby Racer and/or Ruby Rhino
36mRequest and Response
30mThe Power of Middleware - Building Your Own Mini Web Framework on Rack
