我正在使用google-api-client gem在谷歌日历中创建事件。
我在谷歌找到了文档:https://developers.google.com/calendar/quickstart/ruby
因此,当我安装gem时,在命令rails console之后,我尝试了require libs:
require 'google/api_client',
require 'google/apis',
require 'google/apis/calendar_v3'在每个require上,我都会得到这样的错误:LoadError: cannot load such file
创业板信息:
bundle info google-api-client
google-api-client (0.23.4)
Summary: Client for accessing Google APIs
Homepage: https://github.com/google/google-api-ruby-client
Path: /Users/danielsaifulin/.rvm/gems/ruby-2.4.0-rc1@sortd/gems/google-api-client-0.23.4`发布于 2018-07-18 16:01:40
我不知道为什么,但在rails console中,当我调用require 'google/apis‘时,它不工作,但当我在rails helper中的某个函数中运行时,它是工作的。
所以,问题已经解决了。
https://stackoverflow.com/questions/51395787
复制相似问题