I\'m using Capistrano 2 with Rails 3 project. Recently I rebuilt my gemset form scratch and now I receive error \"Please require this file from within a Capistrano recipe (L
The problem is with rvm-capistrano.
Correct it in gemfile. require: false
gem 'rvm-capistrano', require: false
This should help
In your Gemfile change this.
gem 'rvm-capistrano', require: false
This will solve the problem without any headache.
A better solution I found, instead of removing it, to just move rvm-capistrano before capistrano:
# Deploy with Capistrano
gem 'rvm-capistrano'
gem 'capistrano'
gem 'capistrano-ext'
But, what's strange, I've solved this problem also like that (in my Gemfile, just to comment main capistrano gem):
# Deploy with Capistrano
# gem 'capistrano', :group => :development
gem 'rvm-capistrano', :group => :development