When I create a new 2.0 project (rails project_name)
Aptana shows what appears to me to be a valid error in boot.rb
The line:
if version = self.class.gem_version
is an assignment
Should this not read:
if version == self.class.gem_version
def load_rails_gem
if version = self.class.gem_version
gem ‘rails’, version
else
gem ‘rails’
end
rescue Gem::LoadError => load_error
$stderr.puts %(Missing the Rails #{version} gem. Please gem install -v=#{version} rails
, update your RAILS_GEM_VERSION setting in
config/environment.rb for the Rails version you do have installed, or
comment out RAILS_GEM_VERSION to use the latest version installed.)
exit 1
end
There is also a second error reported in the (rescue Gem::LoadError =>
load_error) of “unused local variable load_error”
I changed the first problem to ==, but I am not sure what to do about
the second.
Thanks in advance.