views:

37

answers:

2

I'm trying to edit one of the gem's config files and I can't find it.. not sure how i did this in the past.

+2  A: 

Look at your gem environment.

gem env (from console that is)

You should see an entry INSTALLATION DIRECTORY, but there is also GEM PATHS which is where it's loading all your gems from in your current environment.

theIV
A: 

If you are editing the gem's installed files, then the gem wasn't implemented correctly, or you are not modifying it correctly.

Proper gems are usually configured:

  • via an initializer script on config/initializers
  • via monkeypatching on lib
  • via generators provided by the gem itself. These tend to generate lots of files, but they usually have a "initialize" or "install" option for setting up the gem.
egarcia