From Rails to Rack: Making Rails 3 a Better Ruby Citizen
summary
Explains concrete changes in Rails 3: adopts Rack so middleware like Rack middleware and router points at an action become first-class, lets controllers/actions be called as rack endpoints, and adds a tiny ORM-proxy strategy so non‑ActiveRecord objects respond like AR. Shows replacing inline JS with markup so front ends can emit markup not JS and describes metaprogrammed callback compilation that cuts filter overhead dramatically. Demonstrations and code-level design choices are emphasized over high-level promises.
AI-written summary · about
chapters (22)
- 0:00Start
- 6:27At its core
- 12:43app Controller.action (index) use app
- 15:46config.middleware.use Foo
- 16:17Integration Tests
- 17:24Endgame
- 20:16Merb 1.0
- 23:111. Compliance
- 23:342. Proxy
- 23:47object.to_model
- 24:39Code Change
- 26:12JavaScript
- 29:08rails.prototype.js
- 30:36Filters
- 33:43Performance
- 37:21Module Based
- 38:01Example: Rendering
- 40:05I would like to be able to override form for for a particular controller.
- 41:29FastController
- 42:51MyFramework
- 43:11Sinatra
- 43:55CloudKit
related talks
01h 09mRails 3 ...and the real secret to high productivity
37mRuby on Rack: The Magic Between Request and Response
55mThe Future of Rack
38mThe Great Rails Refactor
41mRack - A Framework to Roll Your Own
28mDissecting Rails
29mExtending Rails 3
28mIn a World of Middleware, Who Needs Monolithic Applications
