Save 36% for Black Friday! Learn more

Rene Mercadel

Joined

20 Experience
0 Lessons Completed
0 Questions Solved

Activity

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.

Every time I click the Connect to twitter button I'm brought to
https://twitter.com/i/oauth2/authorize?client_id=.......

And get:

Something went wrong
You weren’t able to give access to the App. Go back and try logging in again.