Kir
Kir

Reputation: 8111

require file from gem

I have an example gem as from the Ryan screencast

It contains additional file lib/lorem/capistrano.rb. When I try to add require 'lorem/capistrano' to my deploy.rb, it gives:

`gem_original_require': no such file to load -- lorem/capistrano (LoadError)

How to solve this problem?

Upvotes: 0

Views: 275

Answers (1)

Kir
Kir

Reputation: 8111

The solution is to call bundle exec [command] instead of [command].

Upvotes: 2

Related Questions