May 25, 2013, 07:56:20 AM
Login with username, password and session length
Welcome to the SapphireSteel forum - for discussion of the Ruby In Steel and Amethyst IDEs
Ruby In Steel
Topic: Loading Webrick (Read 2163 times)
March 18, 2009, 04:16:35 PM »
This was working - and now it isn't. I realize that's not much to go one, but the console message is:
C:\Documents and Settings\cbird.BIRD\My Documents\myvitals\MyVitals>ruby ./scrip
=> Booting WEBrick...
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:445:in `load_missing_constant': uninitialized constant RAILS (NameError)
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:77:in `const_missing'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:89:in `const_missing'
from C:/Documents and Settings/cbird.BIRD/My Documents/myvitals/MyVitals/config/environment.rb:63
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:110:in `run'
from C:/Documents and Settings/cbird.BIRD/My Documents/myvitals/MyVitals/config/environment.rb:13
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require' ... 8 levels...
I have removed some of the line breaks, but other than that this is the console log.
Is it likely that I have somehow unswet a key environment variable? I am at a bit of a loss - since this was working a week ago. I don't know what I must have changed.
Any thoughts greatly appreciated.
Re: Loading Webrick
Reply #1 on:
March 18, 2009, 04:21:29 PM »
Can you run this from the command prompt (i.e. when not using Ruby In Steel)?
Have you installed any updates recently, say to Ruby, Rails or some gems?
Re: Loading Webrick
Reply #2 on:
March 20, 2009, 06:35:56 AM »
I don't know what I had done differently. I have updated the installation since, and have got it to work, but only after commenting out the following:
# RAILS::Initializer.run do |config|
# config.log_level = :debug
I had inserted that code into environment.rb to get the log level that I wanted. That's where the uninitialized RAILS constant came from.
Anyhow for now I am back running, so all is well.
Please select a destination:
=> News and Announcements
=> Ruby In Steel
=> Ruby Programming
=> The Snug Bar
Powered by SMF 1.1.11
SMF © 2006-2009, Simple Machines LLC