SapphireSteel Forum
Welcome, Guest. Please login or register.
May 25, 2013, 07:56:20 AM

Login with username, password and session length
Search:     Advanced search
Welcome to the SapphireSteel forum - for discussion of the Ruby In Steel and Amethyst IDEs
3884 Posts in 800 Topics by 669 Members
Latest Member: m
* Home Help Search Login Register
+  SapphireSteel Forum
|-+  General
| |-+  Ruby In Steel
| | |-+  Loading Webrick
« previous next »
Pages: [1] Print
Author Topic: Loading Webrick  (Read 2163 times)
seabird20
Newbie
*
Posts: 4


« on: 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
t/server -p3000
=> 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...
        from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49

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.

Chris
Logged
Huw Collingbourne
Administrator
Hero Member
*****
Posts: 934



« 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?
Logged
seabird20
Newbie
*
Posts: 4


« 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
# end

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.

Thanks

Chris
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!