A RailsConf 2013 intro talk by Aimee Simone & Christopher Green
Summary:
- Request Made
GET https://www.codeschool.com/
- Request accepted by web server (apache), passed to application server (passenger)
- Application server gives request to Rails process
- Rails process runs through middleware stack and processes request
- Request path and method mapped to controller and action
- Controller action gathers information from models (activerecord, database) to supply the view
- View template creates HTML for HTTP response (headers, status, body)
- View writes HTML to response body
- Response travels back through middleware stack
- Response is returned to browser
- Response received!