I'm trying to edit one of the gem's config files and I can't find it. I'm not sure how I did this in the past.
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Eager-loading association count with Arel (Rails 3
- Is there a way to remove IDV Tags from an AIFF fil
- Rails how to handle error and exceptions in model
相关文章
- Right way to deploy Rails + Puma + Postgres app to
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
- “No explicit conversion of Symbol into String” for
- form_for wrong number of arguments in rails 4
- Rspec controller error expecting <“index”> but
- Factory_girl has_one relation with validates_prese
Rvm
Or you can check:
Bundler
For specific gem:
Gem
For specific gem:
Look at your gem environment.
In a terminal run
gem env
You should see an entry
INSTALLATION DIRECTORY
, but there is alsoGEM PATHS
which is where it's loading all your gems from in your current environment.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:
config/initializers
lib
To see the default installation directory, run
gem env gemdir
If you want to change the default installation directory (for example, to ~/.gem/ruby/2.1.0), add this line to ~/.bashrc
export GEM_HOME=~/.gem/ruby/2.1.0
And you also need to make sure ~/.gem/ruby/2.1.0/bin is in your PATH environment variable to use the commands provided by gem packages. If not, add this line to ~/.bashrc
export PATH=$PATH:~/.gem/ruby/2.1.0/bin