I encounter identical issues with some Ruby gems in Rails application.
When I use:
require 'rubygems'
require 'uuidtools'
or
require 'rubygems'
require 'json'
in Rails application, I get the “no such file to load — uuidtools” error (or “no such file to load — json” – respectively).
- Both gems are installed properly
- When I type these directive pairs in irb, I get “true” as a result.
- When I try to run application with
rails serveror in a NetBeans debugging session, I get “no such file to load” - It seems that this issue concerns many of other gems installed.
I added gems to Gemfile and it helped.