Question

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: "git@bitbucket.org: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
Was it helpful?

Solution

You probably have your library named differently than a gem. So check how is your library named and change argument for require respectively.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top