0

How do I update to Rails 3.1 ?

I am using windows xp with ruby console.

And is there a smart way to update a rails app from 3.0.3 to 3.1 or do I need to rewrite it all?

John
  • 11
  • 1
  • 3
  • First I did type gem list in my ruby console. Second I typed gem uninstall rails and did choise to uninstall all my rails versions. Third: I did type: set HOMEPATH= and after that I could type "gem intall rails" – John Jul 04 '11 at 13:52
  • 1
    Protip: use *rvm* so you don't have to install and uninstall rails... especially if you work with more than one rails project, in which case you will eventually have them in different rails versions! – ANeves Jul 04 '11 at 15:21
  • 2
    @ANeves RVM isn't available for windows unfortunately. – Dave A-R Jul 04 '11 at 21:04
  • @SaucyK D'OH, thx for the correction. (Too bad.) – ANeves Jul 06 '11 at 10:20

3 Answers3

4

This question has a lot of useful information which might help you out: Upgrading from Rails 3 to Rails 3.1

It doesn't answer specifically for Windows, but there's a lot of advice and insight that you'll find useful for the upgrade.

The only advice I can offer on top of reading the answers in the above question is to have a bit of patience and not expect it to work straight away. There's a lot of changes in the way 3.1 works so expect to spend some time fixing it up.

Good luck!

Community
  • 1
  • 1
Dave A-R
  • 1,159
  • 1
  • 11
  • 22
1

I created one vanilla 3.0 site, added it to Git, then created a vanilla 3.1 site and copied it over the 3.0 site, deleting existing files first. A diff then showed me exactly what changed.

jdc
  • 733
  • 3
  • 7
0

I would strongly recommend this and the following two railscasts in the series

chrispanda
  • 3,204
  • 1
  • 21
  • 23