# From Instant Rails 2.0 to Rails 2.1.0

**URL:** <https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221>\
**Category:** Rails\
**Created:** [June 23, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221 "2008-06-23T20:12:50Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 23, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/1 "2008-06-23T20:12:50Z")

</div>

hi,

I have installed Instant Rails 2.0 on my machine which comes with  
Rails 2.0.2. Now I want to update my Rails to version 2.1.0. So I do  
gem update rails and It seems to be fine. But when I check the version  
of my Rails I get the following message:

> rails -v  
> C:/RoR/ruby/lib/ruby/site\_ruby/1.8/rubygems.rb:578:in  
> `report_activate_error': RubyGem version error: activesupport(2.0.2 not = 2.1.0) (Gem::LoadError) from C:/RoR/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:134:in`activate’  
> from C:/RoR/ruby/lib/ruby/site\_ruby/1.8/rubygems.rb:158:in `activate' from C:/RoR/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:157:in`each’  
> from C:/RoR/ruby/lib/ruby/site\_ruby/1.8/rubygems.rb:157:in `activate' from C:/RoR/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:49:in`gem’  
> from C:/RoR/ruby/bin/rails:18

Please help! Thanks…  
zhiguang

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 23, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/2 "2008-06-23T21:09:16Z")

</div>

Hi zhiguang,

zhiguang wrote:

> I have installed Instant Rails 2.0 on my machine which comes with  
> Rails 2.0.2. Now I want to update my Rails to version 2.1.0. So I do  
> gem update rails and It seems to be fine. But when I check the version  
> of my Rails I get the following message:
> 
> > rails -v  
> > C:/RoR/ruby/lib/ruby/site\_ruby/1.8/rubygems.rb:578:in  
> > `report\_activate\_error’: RubyGem version error: activesupport(2.0.2  
> > not = 2.1.0) (Gem::LoadError)

Looks like it didn’t get it all done. I successfully updated my copy of  
IR2.0 but did a gem update --system first. Also, I did gem update rails  
-y  
to include the dependencies. Also, I went back and uninstalled the down  
versions (e.g., rails2.0.2). It’s not supposed to be necessary but I  
prefer  
a ‘clean’ copy.

HTH,  
Bill

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 24, 2008, 3:11am UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/3 "2008-06-24T03:11:14Z")

</div>

(sorry if it is a double post, having some google-groups issues…)

i’m trying to update too, so i can use the new cache features, but  
when i try to use the method “Rails.cache.write” in my controller  
i get the message

“undefined method `cache’ for Rails:Module (NoMethodError)”

and if i try to set the cache store  
(“ActionController::Base.cache\_store = :memory\_store”)  
i get: “undefined method `cache\_store=’ for  
ActionController::Base:Class (NoMethodError)”

the version message is “Rails 2.1.0”, so i assume that the version is  
ok.  
does anyone know what could be the problem? thanks.

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 24, 2008, 4:33am UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/4 "2008-06-24T04:33:56Z")

</div>

i just updated my instant rails today. i did:

1 - gem update --system  
2 - gem update rails -y  
3 - gem uninstall rails (not really necessary)

and i had to do it twice, as the first time the  
update was not properly done. it could be nice  
to delete everything and start from scratch, i  
did that.

zhiguang wrote:

> After installed Instant Rails 2.0, I did
> 
> > gem uninstall rails  
> > gem update --system  
> > gem update rails -y
> 
> But I got the same error message. (I also tried without this first  
> step…)
> 
> What did I miss there? Thanks…

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 24, 2008, 4:11am UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/5 "2008-06-24T04:11:38Z")

</div>

After installed Instant Rails 2.0, I did

> gem uninstall rails  
> gem update --system  
> gem update rails -y

But I got the same error message. (I also tried without this first  
step…)

What did I miss there? Thanks…

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 24, 2008, 5:50am UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/6 "2008-06-24T05:50:25Z")

</div>

Did you do anything between downloading/unzipping InstantRails-2.0-  
win.zip and your 3 steps?

Here is my problem: after the 1st step, I did the following and got an  
ERROR message.

C:\RoR2\rails\_apps\>gem update rails -y  
Updating installed gems  
Updating rails  
ERROR: While executing gem … (Gem::InstallError)  
invalid gem format for C:/RoR2/ruby/lib/ruby/gems/1.8/cache/  
activesupport-2.  
1.0.gem

Hints? Thanks…

On Jun 23, 10:33 pm, Pepe J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 24, 2008, 6:55pm UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/7 "2008-06-24T18:55:27Z")

</div>

try gem cleanup -v, this should get rid of the old gem versions

Steve

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 25, 2008, 3:48am UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/8 "2008-06-25T03:48:49Z")

</div>

I had the exact same problem as you today. I ran this command and it  
fixed the problem:

“gem uninstall rails”  
“gem install rails”

Hope this helps.

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 24, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/9 "2008-06-24T22:32:57Z")

</div>

Steve,

Thanks for the suggestion, but I alos still have this issue.  
See screenshot:

[http://screencast.com/t/DDn17ETuURQ](http://screencast.com/t/DDn17ETuURQ)

Any ideas?  
Thanks,

Owen

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 25, 2008, 10:41pm UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/10 "2008-06-25T22:41:40Z")

</div>

Need to MANUALLY dowload the Activesupport 2.1 gem, install using the  
–local option, THEN  
do “gem install rails”

I was told there is a repository problem…

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 25, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/11 "2008-06-25T19:35:41Z")

</div>

I tried all the suggestions above but none of them worked.

I just wonder isn’t updating Instant Rails (which contains Rails 2.0.2  
now) to Rails 2.1.0 something simply and very desired? Shouldn’t there  
be some standard procedure for that?

It is just so frustrated…

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [June 26, 2008, 3:30pm UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/12 "2008-06-26T15:30:40Z")

</div>

Try:

Start InstantRails  
Menu -\> Rails Applications -\> Open Ruby Console Window  
at prompt: gem install rails

Zé Luiz.

---

<div class="post-metadata">

**Author:** ![zhiguang](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/54ee81/32.png) [@zhiguang](https://www.ruby-forum.com/u/zhiguang)\
**Post date:** [July 9, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0/141221/13 "2008-07-09T20:11:04Z")

</div>

ZÃ© Luiz wrote:

> Try:
> 
> Start InstantRails  
> Menu → Rails Applications → Open Ruby Console Window  
> at prompt: gem install rails
> 
> Zï¿½ Luiz.

The above worked for me. Thanks Ze Luiz
