开发者

Ruby On Rails - Where to gems actually go

When I do sudo gem install XYZ where does that code actually go? Are gems written in ruby on another language?

When I do bundle install, what does that 开发者_JS百科do? I read through the rails tutorial, but it seemed to leave out those important details.


in your console use command:

gem env

There will be INSTALLATION DIRECTORY


The command

bundle install

installs the gems listed in your Gemfile. If you are installing gems using bundle, you can type

bundle show <gem name>

to see the directory that it is installed in. If I were you I'd navigate to one of those directories and view the code -- it's usually ruby code (but can sometimes involve C). (Look in the 'lib' subdir first -- that's where most of the code usually is).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜