Forum: Ruby on Rails Problem upgrading from Rails 2.0.2 to 2.2.2

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
44391f94143d129bdfdcd8b52aa51674?d=identicon&s=25 Schalk Neethling (Guest)
on 2008-11-22 10:38
(Received via mailing list)
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
44391f94143d129bdfdcd8b52aa51674?d=identicon&s=25 Schalk Neethling (Guest)
on 2008-11-22 11:11
(Received via mailing list)
Hi All,

I found the following discussion on the group:
http://groups.google.com/group/rubyonrails-talk/br...

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
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-11-22 15:55
(Received via mailing list)
On Nov 22, 10:10 am, Schalk Neethling <volume4.sch...@gmail.com>
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
944f085fd19cfeca28ce8693e36d5473?d=identicon&s=25 Xlash (Guest)
on 2008-12-04 22:12
(Received via mailing list)
The following command is deprecated in Rails 2.2.2
in config/environments/development.rb
config.action_view.cache_template_extensions         = false

Regards,

Guillaume
This topic is locked and can not be replied to.