Hi
Busy setting up webistrano on a new server and I just cannot get it to
work. After I run :
-----------
afit@SetTheHostname:~/webistrano$ RAILS_ENV=production rake db:migrate
(in /home/afit/webistrano)
rake aborted!
undefined local variable or method `version_requirements' for
#<Rails::GemDependency:0x000000021cdea8>
(See full trace by running task with --trace)
---------
found a hack to edit the environment.rd file at :
http://www.redmine.org/issues/7516
I have done it to the environment.rd file in in webistrano, this is
how the entry looks :
--------------
# Bootstrap the Rails environment, frameworks, and default
configuration
require File.join(File.dirname(__FILE__), 'boot')
if Gem::VERSION >= "1.3.6"
module Rails
class GemDependency
def requirement
r = super
(r == Gem::Requirement.default) ? nil : r
end
end
end
end
Rails::Initializer.run do |config|
# Settings in config/environments/* take precedence over those
specified here.
-------------
Still no go. This is what I run :
afit@SetTheHostname:~/webistrano$ gem -v
1.7.2
afit@SetTheHostname:~/webistrano$ rails -v
Rails 3.0.6
Any ideas?