I'm doing my first deployment of a Rails app and using capistrano. The installation aborts with the following error:
*** [err :: plantality.com] RubyGem version error: will_paginate(2.2.2 not ~> 2.3.11)
but I've already vendored 2.3.11 to vendor/gems and have the following in my environment.rb (which google tells me is the correct thing to do):
config.load_paths += Dir["#{RAILS_ROOT}/vendor/gems/**"].map do |dir|
File.directory?(lib = "#{dir}/lib") ? lib : dir
end
config.gem 'will_paginate', :version => '~> 2.3.11', :source => 'http://gemcutter.org'