Using:
RadRails 0.7.2, Windows XP Media Center Edition, Norton Internet Security.
Problem:
This was particularly frustrating for a newbie. In RadRails’ Servers view, click on the Globe icon to start the browser and the WEBrick server. RadRails displays “Starting Server” and the green progress bar activates, but the WEBrick server doesn’t start. Take a look at the Console tab, you’ll see:
Cannot find gem for Rails =1.1.6:
Install the missing gem with 'gem install -v=1.1.6 rails', or
change environment.rb to define RAILS_GEM_VERSION with your desired version.
- Update: Aptana has logged this as bug 4422.
I updated environment.rb, but still got hung up at “Starting Server.” The Console showed I was hung up at
[2007-05-24 08:17:42] INFO WEBrick::HTTPServer#start: pid=5912 port=3000
Solution(s):
1. In Rails Navigator, go to [project name] > config.
2. Double-click environment.rb to open the file.
3. In the line RAILS_GEM_VERSION, change the version number to your current Rails version. For example, I changed mine from RAILS_GEM_VERSION = '1.1.6' to RAILS_GEM_VERSION = '1.2.3'
To check your Rails version number, at a command prompt, enter:
ruby rails -v
4. (optional) Then, WEBrick got hung up by Norton Internet Security. If you have NIS installed and running, turn it off for a few minutes to allow the WEBrick server to start. I’ll have to figure out how to tell NIS that WEBrick is a good guy.