Search code examples
ruby-on-rails-3exceptionrest-client

ruby rest_client exception


I try to use gem rest client to access some simple REST service, I have installed the rest-client following these instructions, but when try to use the library, I get the following error no such file to load -- rest_client.

It seems that the library is not recognized.

Did anyone have similar problems with this library?


Solution

  • Make sure you add it to your Gemfile, bundle install, restart server, and if required, require 'rest_client' or whatever the file name is.