# Problem upgrading from Rails 2.0.2 to 2.2.2

**URL:** <https://www.ruby-forum.com/t/problem-upgrading-from-rails-2-0-2-to-2-2-2/153879>\
**Category:** Rails\
**Created:** [November 22, 2008, 10:38am UTC](https://www.ruby-forum.com/t/problem-upgrading-from-rails-2-0-2-to-2-2-2/153879 "2008-11-22T10:38:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Schalk\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Post date:** [November 22, 2008, 10:38am UTC](https://www.ruby-forum.com/t/problem-upgrading-from-rails-2-0-2-to-2-2-2/153879/1 "2008-11-22T10:38:26Z")

</div>

Hey all,

I just upgraded a very simple rails based website from Rails 2.0.2 to  
2.2.2. When I started up Mongrel however, I got the following error:

\*\* Starting Rails with development environment…  
ExitingC:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:530:in  
`send': undefined method`cache\_template\_extensions=’ for  
ActionView::Base:Class (NoMethodError)  
from  
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:530:in  
`initialize_framework_settings' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:529:in`each’  
from  
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:529:in  
`initialize_framework_settings' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:526:in`each’  
from  
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:526:in  
`initialize_framework_settings' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:154:in`process’  
from  
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in  
`send' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in`run’  
… 29 levels…  
from  
C:/InstantRails/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require' from ./script/server:3 from -e:2:in`load’  
from -e:2

Any help and pointers appreciated,  
Schalk

---

<div class="post-metadata">

**Author:** ![Schalk\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Post date:** [November 22, 2008, 11:11am UTC](https://www.ruby-forum.com/t/problem-upgrading-from-rails-2-0-2-to-2-2-2/153879/2 "2008-11-22T11:11:11Z")

</div>

Hi All,

I found the following discussion on the group:  
[http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/ba1942467c19ea41/7b0a6ae9e87e8d49?hide\_quotes=no](http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/ba1942467c19ea41/7b0a6ae9e87e8d49?hide_quotes=no)

I now see this is a deprecated and now removed attribute. However, what  
I was wondering, isn’t running rake rails:update supposed to fix these  
issues. From Aptana it states that rails:update does the following:

Update both configs, scripts and public/javascripts from Rails

Seeing that the files that contained the removed attribute is in the  
config/environments folder I find it strange that the Rake command did  
not fix it or, am I misunderstanding what exactly the command does?

Thanks,  
Schalk

---

<div class="post-metadata">

**Author:** ![Schalk\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Post date:** [November 22, 2008, 3:55pm UTC](https://www.ruby-forum.com/t/problem-upgrading-from-rails-2-0-2-to-2-2-2/153879/3 "2008-11-22T15:55:26Z")

</div>

On Nov 22, 10:10 am, Schalk N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Seeing that the files that contained the removed attribute is in the  
> config/environments folder I find it strange that the Rake command did  
> not fix it or, am I misunderstanding what exactly the command does?

editing a user editable and often heavily modified file like  
production.rb would be somewhat error prone. As far as I can remember  
the only such file that is updated is boot.rb (which has a warning at  
the top saying ‘don’t change me’)

Fred

---

<div class="post-metadata">

**Author:** ![Schalk\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@Schalk\_N](https://www.ruby-forum.com/u/Schalk_N)\
**Post date:** [December 4, 2008, 10:12pm UTC](https://www.ruby-forum.com/t/problem-upgrading-from-rails-2-0-2-to-2-2-2/153879/4 "2008-12-04T22:12:37Z")

</div>

The following command is deprecated in Rails 2.2.2  
in config/environments/development.rb  
config.action\_view.cache\_template\_extensions = false

Regards,

Guillaume
