Displaying 5 results from an estimated 5 matches for "load_rubygems".
2010 Oct 24
1
Re: [Rails-core] Re: (Unable to start rails application) ruby scipt/server error
...ot < Boot
def load_initializer
require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
Rails::Initializer.run(:install_gem_spec_stubs)
Rails::GemDependency.add_frozen_gem_path
end
end
class GemBoot < Boot
def load_initializer
self.class.load_rubygems
load_rails_gem
require ''initializer''
end
def load_rails_gem
if version = self.class.gem_version
gem ''rails'', version
else
gem ''rails''
end
rescue Gem::LoadError => load_error
$st...
2009 Aug 31
3
Getting this error
HI friends,
After updating ruby 1.8 to ruby1.9.1.......& on firing script/server to
start a server,
I am getting the following errror.....
/home/HUNT/WEBlog/config/boot.rb:86:in `load_rubygems'': undefined method
`>='' for nil:NilClass (NoMethodError)
from /home/HUNT/WEBlog/config/boot.rb:52:in `load_initializer''
from /home/HUNT/WEBlog/config/boot.rb:38:in `run''
from /home/HUNT/WEBlog/config/boot.rb:11:in `boot!''
from /home/HUNT/WEBlo...
2010 Oct 22
6
(Unable to start rails application) ruby scipt/server error
1) I installed the ruby-1.9.2-p0 and rubygems-1.3.7 in the
(/usr/local/src directory )
2) Then i installed rails from terminal by typing follwoing
sudo gem install rails --include-dependencies
3) Then i made a rails applcation from terminal as
rails new demo
then
cd demo
ruby
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
..._gem_path
end
end
@@ -67,7 +68,7 @@ module Rails
class << self
def rubygems_version
- Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
+ Gem::RubyGemsVersion rescue nil
end
def gem_version
@@ -82,14 +83,14 @@ module Rails
def load_rubygems
require 'rubygems'
-
- unless rubygems_version >= '0.9.4'
- $stderr.puts %(Rails requires RubyGems >= 0.9.4 (you have #{rubygems_version}). Please `gem update --system` and try again.)
+ min_version = '1.3.1'
+ unless rubygems_ver...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server