Rack in Rails

Does Rack come with Rails or do I need to install the gem?

Pål Bergström wrote:

Does Rack come with Rails or do I need to install the gem?

Rack is a dependency of Rails so it will get installed when you install
the Rails gems. Also keep in mind certain versions of Rails requires a
certain version of Rack. Sometimes even an older one than the current.

If in doubt just run:

sudo gem install rails

Robert Walker wrote:

Rack is a dependency of Rails so it will get installed when you install
the Rails gems. Also keep in mind certain versions of Rails requires a
certain version of Rack. Sometimes even an older one than the current.

If in doubt just run:

sudo gem install rails

How do I access rack from a rails app?

Typically, unless you were writing a metal or some rack middleware,
you wouldn't directly. Rack is (mostly) just the glue between the web
server and rails

Fred