How a Request Becomes a Response
summary
Follows an HTTP GET from browser through web server (nginx Apache WEBrick) to app server (Passenger Mongrel) into Rails where routes.rb defines resources, the router matches path and verb to a controller action (index), the action queries models (ActiveRecord) and renders a view (index.html.haml or ERB), Rack middleware can add or modify headers on the way back, and the response returns status (200 301 400 500), cookies, content-type and body so the browser can render HTML.
AI-written summary · about








