New Discussion

Notifications

You’re not receiving notifications from this thread.

HTTP Server from Scratch: Rack & Rails Support Discussion

2
General

nice

For anyone having trouble requiring "rack/lobster", the class was recently moved to the "rackup" gem. To fix it I ran "gem install rackup" in the terminal:

then I got the response:
"rackup's executable "rackup" conflicts with rack"
"Overwrite the executable? [yN]" <== I input "y"

and then changed the require statement at the top of the file from:
"require "rack/lobster"
to:
"require "rackup/lobster"

and changed the "APP" definition from:
"Rack::Lobster.new"
to:
"Rackup::Lobster.new"

in order to get it working. I also forgot to add ":query" to the "attr_reader" line at the top of my request file initially, but after implementing these fixes that got it working.

Thanks!

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.