I have spent almost 8 hours on this and I know it's an easy fix.
I want to use this repository of the basecrm gem.
The problem: I don't know how to require/include the gem, neither locally as a cloned copy or as a regular "require gem_name" to find Leads
gem 'basecrm', :git => 'git://github.com/basecrm/basecrm.git'
According to the Readme.md it says to call
require 'basecrm'
⌘ ~/Sites/basecrm/ irb irb(main):001:0 require 'basecrm' LoadError: cannot load such file -- basecrm from /Users/username/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' from /Users/username/.rbenv/versions/2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require' from (irb):1 from /Users/username/.rbenv/versions/2.1.3/bin/irb:11:in `<main>' irb(main):002:0session = BaseCrm::Session.new NameError: uninitialized constant BaseCrm from (irb):2 from /Users/username/.rbenv/versions/2.1.3/bin/irb:11:in `<main>'
Any help is really appreciated. I am ready to tear my hair out on this.
如果您使用Gemfile,则应使用bundler运行irb,例如bundle exec irb
,然后要求您的gem require "basecrm"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.