Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"How a Request Becomes a Response (In Rails)" Summary

How a Request Becomes a Response

A RailsConf 2013 intro talk by Aimee Simone & Christopher Green

Video | Slides


Summary:

  1. Request Made
    • GET https://www.codeschool.com/
  2. Request accepted by web server (apache), passed to application server (passenger)
  3. Application server gives request to Rails process
  4. Rails process runs through middleware stack and processes request
  5. Request path and method mapped to controller and action
  6. Controller action gathers information from models (activerecord, database) to supply the view
  7. View template creates HTML for HTTP response (headers, status, body)
  8. View writes HTML to response body
  9. Response travels back through middleware stack
  10. Response is returned to browser
  11. Response received!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment