Josh Williams
Josh Williams

Reputation: 68

no such file to load -- json (first request only)

As the title suggests, I'm getting that error ONLY on the first request to the application. Subsequent requests work fine. This is occurring on several of the machines I'm running the application on.

I'm not using anything JSON related in this app (at least not that I'm aware of).

I should also point out that adding gem 'json' to the Gemfile makes the error "go away". I'd be ok with this, but I'm afraid there's something more sinister at work here that will turn into a code-bomb later.

This is Rails 3.0.3 and Ruby 1.8.7.

Upvotes: 3

Views: 3284

Answers (1)

Sayuj
Sayuj

Reputation: 7622

Some of your files may require json. Try to install json with:

 sudo gem install json

Or

Add gem 'json' to Gemfile and do bundle install

Upvotes: 7

Related Questions