Master Ruby on Ruby
  • Prologue
  • README.md
  • Upgrade
  • Upgrade
  • Upgrade a Rails app
  • Rails Structure
    • The Rails code structure
  • Models
  • Action Pack
  • Views
  • Action Text
  • Authentication
    • Session & Cookie
  • Assets Precompile
  • Active Storage
  • Secrets Configuration
  • Generators
  • Rails Utilities
  • Ruby lang
    • Type
    • Constant
    • Class
    • Module
    • Variable 承值容器
    • Symbol
    • Reading Rails' source code
  • Test
  • Database
    • PostgreSQL vs MySQL
  • Tools
    • Container
    • Rack
Powered by GitBook
On this page
  1. Tools

Rack

The foundation of Rails and all other significant Ruby-based web frameworks is a simple HTTP adapter library called Rack.

Rack exists to standardise the interface between multiple Ruby Web frameworks and Ruby Web servers.

Rack abstracts away the handling of HTTP requests and responses into a single, simple call method.

Rails leverages Rack middlewares in a modular and extensible manner. Much of Action Controller is implemented as Rack middleware modules.

PreviousContainer

Last updated 1 year ago