Skip to content

Commit 6d04b87

Browse files
committed
Updated code samples to reflect updating of rest_client gem to its new rest-client name
1 parent fe68ac1 commit 6d04b87

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

content/guides/basics-of-authentication.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ is set to `http://localhost:4567`. Let's fill in the callback URL as `http://loc
3434
Now, let's start filling out our simple server. Create a file called _server.rb_ and paste this into it:
3535

3636
require 'sinatra'
37-
require 'rest_client'
37+
require 'rest-client'
3838

3939
CLIENT_ID = ENV['GH_BASIC_CLIENT_ID']
4040
CLIENT_SECRET = ENV['GH_BASIC_SECRET_ID']
@@ -60,7 +60,9 @@ Next, in _views/index.erb_, paste this content:
6060
</body>
6161
</html>
6262

63-
(If you're unfamiliar with how Sinatra works, we recommend [reading the Sinatra guide][Sinatra guide].)
63+
(If you're unfamiliar with how Sinatra works, we recommend [reading the
64+
Sinatra guide][Sinatra guide]. Also make certain that the rest-client gem
65+
is installed via `gem install rest-client`.)
6466

6567
Obviously, you'll want to change `<your_client_id>` to match your actual Client ID.
6668

@@ -242,4 +244,4 @@ available as a seperate project.
242244
[rack guide]: http://en.wikipedia.org/wiki/Rack_(web_server_interface)
243245
[sinatra auth github]: https://github.com/atmos/sinatra_auth_github
244246
[sinatra extension]: http://www.sinatrarb.com/extensions.html
245-
[sinatra auth github test]: https://github.com/atmos/sinatra-auth-github-test
247+
[sinatra auth github test]: https://github.com/atmos/sinatra-auth-github-test

0 commit comments

Comments
 (0)