Napmi
Napmi

Reputation: 541

google_drive gem not working "LoadError: cannot load such file -- google_drive"

So this is my first time using a new API for rails. The particular gem I am trying to use today is this. https://github.com/gimite/google-drive-ruby/blob/master/README.md

so after installing it manually to one of my projects on rails,

$ gem install google_drive 

I tried to test it out on Ruby console by just typing

require 'google_drive'

but the error that returned to me "LoadError: cannot load such file -- google_drive."

I also have tried installing this gem, which too didn't help

gem install google-api-client

I am trying to learn how to update my google sheets through one of my web page forms ... but this simple step has got me stuck.

Upvotes: 3

Views: 2029

Answers (1)

Kevin Etore
Kevin Etore

Reputation: 1134

I manually installed the gem by calling gem install 'google_drive' and afterwards calling require 'google_drive' in an IRB session, that works fine.

Does your Rails project's Gemfile include the gem (gem 'google_drive')? Rails will only load the gems specified in that file.

Upvotes: 2

Related Questions