# 2.0 Upgrade Woes

**URL:** <https://www.ruby-forum.com/t/2-0-upgrade-woes/136059>\
**Category:** Rails\
**Created:** [April 28, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/2-0-upgrade-woes/136059 "2008-04-28T15:35:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![slappytang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@slappytang](https://www.ruby-forum.com/u/slappytang)\
**Post date:** [April 28, 2008, 3:35pm UTC](https://www.ruby-forum.com/t/2-0-upgrade-woes/136059/1 "2008-04-28T15:35:59Z")

</div>

I’ve upgraded to Rails 2.0.2. I installed Gems 1.1.1 then upgraded  
rails via a gem install. I’ve had problems fixing my existing previous  
1.X applications, but I’ll wait on that.

For now, for testing, I created a new web app using the “rails” command.  
I then just removed the index.html file from public, uncommented the  
map.root command and created the welcome controller, etc.

The app isn’t starting correctly and when I check the Apache logs the  
newly created 2.0.2 app is bombing with the following error:

/usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active\_record/base.rb:1532:in  
`method_missing': undefined method`partial\_updates=’ for  
ActiveRecord::Base:Class (NoMethodError)  
from /my/project/dir/config/initializers/new\_rails\_defaults.rb:5  
from  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/dependencies.rb:489:in  
`load' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in`load’  
from  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/dependencies.rb:342:in  
`new_constants_in' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:489:in`load’  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:342:in  
`load_application_initializers' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:341:in`each’  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:341:in  
`load_application_initializers' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:116:in`process’  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in  
`send' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in`run’  
from /my/project/dir/public/…/config/environment.rb:13  
from /my/project/dir/public/dispatch.fcgi:21:in `require’  
from /my/project/dir/public/dispatch.fcgi:21

---

<div class="post-metadata">

**Author:** ![slappytang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@slappytang](https://www.ruby-forum.com/u/slappytang)\
**Post date:** [April 28, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/2-0-upgrade-woes/136059/2 "2008-04-28T16:02:34Z")

</div>

> It looks like you got edge rails gems (ie not 2.0.2 at all. If it told  
> you it was installing 2.0.2.9216 (where the number right at the end is  
> probably different) then that’s the problem . There have been a few  
> cases of this happening recently so you should be able to find how to  
> deal with this, but the short version is to either explicitly ask for  
> version 2.0.2 or to remove [gems.rubyonrails.org](http://gems.rubyonrails.org) from your sources list  
> and reinstall them (probably removing the current ones).

Well it did say: Successfully installed rails-2.0.2.9216

It should have installed something else?

---

<div class="post-metadata">

**Author:** ![slappytang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@slappytang](https://www.ruby-forum.com/u/slappytang)\
**Post date:** [April 28, 2008, 4:04pm UTC](https://www.ruby-forum.com/t/2-0-upgrade-woes/136059/3 "2008-04-28T16:04:51Z")

</div>

It should’ve installed rails-2.0.2. You’re checking it out from  
[gems.rubyonrails.org](http://gems.rubyonrails.org) which will get you the very latest code.

Did you follow any sort of tutorial that mentioned about adding this as  
a  
source for your gems? Did you add this as a source?

On Mon, Apr 28, 2008 at 11:32 PM, Slappy T. \<  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> ## It should have installed something else?
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Ryan B.  
[http://www.frozenplague.net](http://www.frozenplague.net)  
Feel free to add me to MSN and/or GTalk as this email.

---

<div class="post-metadata">

**Author:** ![slappytang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@slappytang](https://www.ruby-forum.com/u/slappytang)\
**Post date:** [April 28, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/2-0-upgrade-woes/136059/4 "2008-04-28T15:52:29Z")

</div>

On 28 Apr 2008, at 14:35, Slappy T. wrote:

> I’ve upgraded to Rails 2.0.2. I installed Gems 1.1.1 then upgraded  
> rails via a gem install. I’ve had problems fixing my existing  
> previous  
> 1.X applications, but I’ll wait on that.

It looks like you got edge rails gems (ie not 2.0.2 at all. If it told  
you it was installing 2.0.2.9216 (where the number right at the end is  
probably different) then that’s the problem . There have been a few  
cases of this happening recently so you should be able to find how to  
deal with this, but the short version is to either explicitly ask for  
version 2.0.2 or to remove [gems.rubyonrails.org](http://gems.rubyonrails.org) from your sources list  
and reinstall them (probably removing the current ones).

Fred

---

<div class="post-metadata">

**Author:** ![slappytang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@slappytang](https://www.ruby-forum.com/u/slappytang)\
**Post date:** [April 28, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/2-0-upgrade-woes/136059/5 "2008-04-28T16:07:18Z")

</div>

Ryan B. wrote:

> It should’ve installed rails-2.0.2. You’re checking it out from  
> [gems.rubyonrails.org](http://gems.rubyonrails.org) which will get you the very latest code.
> 
> Did you follow any sort of tutorial that mentioned about adding this as  
> a source for your gems? Did you add this as a source?

Yes I added this as a source. Here’s the command I used:

gem install rails --source [http://gems.rubyonrails.org](http://gems.rubyonrails.org)

---

<div class="post-metadata">

**Author:** ![slappytang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@slappytang](https://www.ruby-forum.com/u/slappytang)\
**Post date:** [April 28, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/2-0-upgrade-woes/136059/6 "2008-04-28T16:13:16Z")

</div>

Ok, that’s not supposed to be done that way.

Who told you to do it that way?

On Mon, Apr 28, 2008 at 11:37 PM, Slappy T. \<  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:

> ## gem install rails --source [http://gems.rubyonrails.org](http://gems.rubyonrails.org)
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Ryan B.  
[http://www.frozenplague.net](http://www.frozenplague.net)  
Feel free to add me to MSN and/or GTalk as this email.

---

<div class="post-metadata">

**Author:** ![slappytang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@slappytang](https://www.ruby-forum.com/u/slappytang)\
**Post date:** [April 28, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/2-0-upgrade-woes/136059/7 "2008-04-28T16:22:12Z")

</div>

Ryan B. wrote:

> Ok, that’s not supposed to be done that way.
> 
> Who told you to do it that way?

Most of the blogs I get related to “upgrading rails 2.0.2” returned by  
Google search results. I initially tried it _without_ the --source tag  
(as stated on the rails download page) but that also didn’t work.

---

<div class="post-metadata">

**Author:** ![slappytang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@slappytang](https://www.ruby-forum.com/u/slappytang)\
**Post date:** [April 28, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/2-0-upgrade-woes/136059/8 "2008-04-28T17:18:32Z")

</div>

Apparently the different Rails versions installed was causing a problem.  
I uninstalled all previous versions of rails and loaded 2.0.2 (not the  
.9216 version) and that seems to have done the trick. Now to slowly  
port my 1.2.X apps over.

---

<div class="post-metadata">

**Author:** ![slappytang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@slappytang](https://www.ruby-forum.com/u/slappytang)\
**Post date:** [April 28, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/2-0-upgrade-woes/136059/9 "2008-04-28T16:07:54Z")

</div>

On 28 Apr 2008, at 15:02, Slappy T. wrote:

> > and reinstall them (probably removing the current ones).
> 
> Well it did say: Successfully installed rails-2.0.2.9216
> 
> It should have installed something else?  
> That is the wrong gem, you want just 2.0.2

Fred

---

<div class="post-metadata">

**Author:** ![slappytang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9dc877/32.png) [@slappytang](https://www.ruby-forum.com/u/slappytang)\
**Post date:** [May 8, 2008, 1:14am UTC](https://www.ruby-forum.com/t/2-0-upgrade-woes/136059/10 "2008-05-08T01:14:37Z")

</div>

Hello,

I am writing in reference to this post:  
[http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/8e3a311149d36893](http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/8e3a311149d36893)

I don’t mean to bother you, but I noticed you successfully uninstalled  
the proper gems. I’ve got myself into the same situation. I’ve  
managed to use the help system to remove the wrong source and remove  
the 2.0.2.9216 gems. I am still getting an error close to what the  
original was, when I try and create a controller. Can you provide a  
bit more detail about how you removed them/corrected the problem? I  
think I am almost there, but there is some sort of dependency  
problem. I am on OS X Leopard, but I am sure I could manage to  
translate should you be on pc. Again, I am sorry for bothering you  
and thank you for taking the time to read this. I am going to lose  
it, soon… 🙂

Thanks,

–John

On Apr 28, 11:18 am, Slappy T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
