Rack in Rails

1 view
Skip to first unread message

Pål Bergström

unread,
Jul 27, 2010, 8:04:43 AM7/27/10
to rubyonra...@googlegroups.com
Does Rack come with Rails or do I need to install the gem?
--
Posted via http://www.ruby-forum.com/.

Robert Walker

unread,
Jul 27, 2010, 9:01:25 AM7/27/10
to rubyonra...@googlegroups.com
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

Pål Bergström

unread,
Jul 27, 2010, 11:35:46 AM7/27/10
to rubyonra...@googlegroups.com
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?

Frederick Cheung

unread,
Jul 27, 2010, 12:35:08 PM7/27/10
to Ruby on Rails: Talk


On Jul 27, 4:35 pm, Pål Bergström <li...@ruby-forum.com> wrote:
> 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
Reply all
Reply to author
Forward
0 new messages