1

Currently I am using rails 2.3.10, I want to update my rails version to version 3. What's the command to update rails?

Telemachus
  • 19,459
  • 7
  • 57
  • 79
Mohsin
  • 21
  • 1
  • 4
  • 1
    @kchau and @sam already covered it, but just to be sure, the upgrade is more involved than just running a rake task. Rails3 addresses models very differently. Depending on which gems you're using, functionality of your existing code may completely break. – brycemcd May 23 '11 at 18:08

2 Answers2

6

So, the basic command would be:

gem update rails

But, upgrading from 2.3.x to 3.x isn't a trivial task... you should really read up a little more on it before you do so.

kafuchau
  • 5,573
  • 7
  • 33
  • 38
4

Ryan Bates shows you how to do it here. The Rails version you are using are completely different so you will have to upgrade Rails and then use this plugin to help upgrade your application unless you already know everything.

thenengah
  • 42,557
  • 33
  • 113
  • 157