开发者

Rails - After installing the gem, is this step necessary?

开发者 https://www.devze.com 2023-03-25 21:45 出处:网络
If I install a gem, say: gem install xyz Must I add this line to the Gemfile? gem \'xyz\'开发者_C百科

If I install a gem, say:

gem install xyz

Must I add this line to the Gemfile?

gem 'xyz'开发者_C百科

Thanks.


the correct order to do this is to add to your Gemfile then run bundle install.

because if you gem install and don't add to your Gemfile and move the project to another machine it will be very difficult to find which gem was installed.

0

精彩评论

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