Rack in Rails

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

Robert W. 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?

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

On Jul 27, 4:35 pm, Pål Bergström [email protected] wrote:

Robert W. 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