Understanding Rack #1 : Notes from Rebuilding Rails by Noah Gibbs

ruby dev.to

What is Rack? Rack is a Ruby gem that acts as a middleman between your Ruby framework (like Rails or Sinatra) and the web server/application server that runs your code. Think of it like a translator: Browser Web Server/App Server Rack Rails App When a browser sends a request: The server receives it. Rack converts the request into a format Rails understands. Rails processes the request and generates a response. Rack converts the response back into a format the server can

Read Full Tutorial open_in_new
arrow_back Back to Tutorials