HTTP Server from Scratch: Rack & Rails Support Discussion
Discussion for
HTTP Server from Scratch: Rack & Rails Support
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.