cannot load such file -- google/api_client
というエラーが出ます。
このサイトを参考に、railsでPVランキングを取得しようとしたのですが、このようなエラーが出てしまいます。
api_client自体は取得できているのですが、これを変数として読み込む際にエラーが出るようです。どのようにすればいいのでしょうか。
LoadError in ArticlesController#index
cannot load such file -- google/api_client
Extracted source (around line #274):
272
273
274
275
276
277
def require(file) result = false load_dependency(file) { result = super } result end
end
Rails.root: /home/ubuntu/workspace/ranqforrepo
Application Trace | Framework Trace | Full Trace
lib/google_api.rb:1:in <top (required)>' app/controllers/application_controller.rb:10:in
pvranking'
This error occurred while loading the following files:
google_api
google/api_client
Request
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。