title: Capistrano `bundler failed to load command: cap`
body: <p>I am working on a Rails 3.2 app and it is uses Capistrano 2.15.5 for deploying to production. </p>
  
  <p>When I run <code>bundle exec cap deploy</code> I get <code>bundler: failed to load command: cap (/.rbenv/versions/2.0.0-p353/bin/cap)</code> </p>
  
  <p><code>which cap</code> returns <code>/.rbenv/shims/cap</code></p>
  
  <p>I think I need to change the path to hit <code>/.rbenv/shims/cap</code>, but I'm not sure how to go about doing that.</p>
  
  <p>deploy.rb</p>
  
  <pre><code>    require 'bundler/capistrano'
      require 'capistrano/deploy_lock'
  
  
  
      set :application, "website"
  
      set :repository, "git@github.com:my_company/website.git"
      set :branch,     "master"
      set :scm,        "git"
      set :user,       "root"
  
      set :deploy_to,    "/home/rails/#{application}"
      set :deploy_via,   "remote_cache"
      set :copy_exclude, ".git/*"
      set :use_sudo,      false
      set :keep_releases, 3
  </code></pre>
  
  <p>Capfile</p>
  
  <pre><code># capistrano default tasks
  load 'deploy'
  
  # Rails' asset pipeline cap tasks
  load 'deploy/assets'
  
  # Vendored gem and plugin cap tasks
  Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
  
  # Cap tasks defined in project's deploy.rb file
  load 'config/deploy'
  </code></pre>
  
  <p>Any help is greatly appreciated.</p>