开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜