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”:
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.
Recent Comments