karnhick
karnhick

Reputation: 275

How to add a gem using Bundler

ERROR: paperclip is not part of the bundle. Add it to Gemfile. (Gem::LoadError)

to add paperclip gem in bundle list I tried the following:

bundle install paperclip

but yet again error occurs that is:

Your bundle is complete! It was installed into ./paperclip The path argument to bundle install is deprecated. It will be removed in version 1.1. Please use bundle install --path paperclip instead.

kindly assist me.

Upvotes: 24

Views: 30326

Answers (2)

senya
senya

Reputation: 1169

Another way to add a gem to the bundle is to run:

bundle add paperclip

The bundle add command seems to be supported since Bundler v1.15.

When you run bundle add, the requested gem is added to the Gemfile and the bundle install is being executed automatically so you don't have to run it yourself.

Upvotes: 23

John Douthat
John Douthat

Reputation: 41179

Open Gemfile in your favorite text editor. Add the line gem 'paperclip'. Then run bundle install

Upvotes: 27

Related Questions