Where are my gems set with rbenv?

I am using rbenv and bundler, I want to open the installed rail gem and insert some debug codes. So I run "rails for bundles" in a rails project, I get "~ / .rbenv / versions / 1.9.3-p194 / lib / ruby ​​/gems/1.9.1/gems/rails-3.2.11" but there is nothing in that directory.

+3


source to share


1 answer


Rails is just a meta gem because it doesn't have any real code, it just lists the dependencies that make up Rails. This is why the gem catalog is empty.

If you want to edit a piece of Rails code, you must edit the corresponding dependency. A Gemfile.lock

direct Rails 3.2.11 dependencies are listed as follows:



rails (3.2.11)
  actionmailer (= 3.2.11)
  actionpack (= 3.2.11)
  activerecord (= 3.2.11)
  activeresource (= 3.2.11)
  activesupport (= 3.2.11)
  bundler (~> 1.0)
  railties (= 3.2.11)

      

+2


source







All Articles