Ruby Build a Rails API Namespacing Routes and JSON Checking our API with cURL

Brian Patterson
Brian Patterson
19,586 Points

Shame about this tutorial

It's a real shame that this tutorial is not updated. As when I try to run bundle I get this error

An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.1'` succeeds before bundling.

It basically means that app is not usable. It would have been great if she started from scratch.

David O' Rojo
David O' Rojo
11,050 Points

To be fair, it is not a tutorial on Ā«solving dependency errorsĀ». But if you share the complete error message, the community may help you to solve the issue.

2 Answers

Brandon McClelland
Brandon McClelland
4,645 Points

Run bundle update && bundle install to see if you can get gem to properly install the json version you need.

I ran 'bundle update json' and that worked fine for me...gdluck!