Ask A Question

Notifications

You’re not receiving notifications from this thread.

HTTP Server from Scratch: Rack & Rails Support Discussion

nice

Reply

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.

Reply

Thanks!

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.