“Could not connect to the server” with Rails 2.2 and Netbeans

Netbeans, Ruby on Rails Add comments

If you get the “Could not connect to the server” error running you project from Netbeans while script/server works fine, first make sure you have the correct Rails version set for your project, it should show “Installed version: 2.2.2”:

Rubygems_update2

If you still get:

Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update –system` and try again.

But the suggested

gem update —system

often fails to update your gem to the new version so try

sudo gem install rubygems-update

and then run:

sudo gem install rubygems-update

and check with

gem -v

where it should show 1.3.1 at the time of writing.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in