Reputation: 5250
I created a gem with a name 'my_gem'. I use this in my Gemfile as like
gem 'my_gem' path: "/home/user/project" #git: "[email protected]:Teamlaunch/launch-service-app.git", branch: "master"
I am able to build the gem. I also can install this gem with "bundle install" command. But When I run this through rails console it can not identify the gem
$rails c
2.1.0 :007 > require 'my_gem'
LoadError: cannot load such file -- my_gem
Upvotes: 2
Views: 403
Reputation: 51151
You probably have your library named differently than a gem. So check how is your library named and change argument for require
respectively.
Upvotes: 2