views:

402

answers:

3

Hi All,

I am developing with Rails on Windows versions. IR 2.0 comes with Rails 2.0. What is the correct way to upgrade the rails (and Ruby) to the latest version?

Rails 2.3 Ruby 1.9

Many thanks.

A: 

I'm not sure about upgrading ruby (since I haven't done it myself) but rails can be upgraded just like any other gem:

gem update rails

(right-click on the InstantRails icon->Rails Applications->OpenRuby Console Window)

hopeless
Gadi
Hmmm... I'm running Ruby 1.8.6 and don't remember having any problems upgrading. Admittedly, I've had InstantRails installed for >6 months so maybe I had to fix something and don't remember. The only problems I've had are related to gems with native extensions not building. Also, you might check whether all your gems are compatible with Ruby 1.9... I still have my doubts.
hopeless
A: 

Solved my own problem by using NetBeans 6.7.1. It has Rails 2.3.2 built in and webrick.I had to install MySQL server locally. If you run it on Vista you need to run it in Admin mode to get all the gems and updates.

Gadi
A: 

I want to upgrade rails version in InstantRails-2.0 also from 2.0.2 to rails 2.3.8

but I am facing problem.

when I write this command in InstantRails console :

D:\InstantRails\InstantRails-2.0-win\rails_apps>gem update rails --include-dependencies

It gives me this error.

ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 302 fetching http://gems.rubyforge.org/yaml

Any Help ?