Lost upgrading from 2.3.8 to 3.1.1

I have been converting from Rails 2.3.8 to Rails 3.1.1 and have made some progress. The 2.3.8 code works fine.

I am now getting the following error and am fairly clueless where to look.

I think I've got an error in my requires but I'm not sure.

All suggestions are welcome.

C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/file_update_checker.rb:25:in `stat': can't convert Array into String (TypeErro         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/file_update_checker.rb:25:in `block in updated_at'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/file_update_checker.rb:25:in `map'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/file_update_checker.rb:25:in `updated_at'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/file_update_checker.rb:29:in `execute_if_updated'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/i18n_railtie.rb:62:in `initialize_i18n'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/i18n_railtie.rb:29:in `block in <class:Railtie>'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/lazy_load_hooks.rb:34:in `call'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/lazy_load_hooks.rb:42:in `each'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `instance_exec'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `run'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:55:in `block in run_initializers'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `each'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `run_initializers'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/application.rb:96:in `initialize!'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:in `method_missing'         from c:/RailsInstaller/Sites/UltraDedup002/config/environment.rb:6:in `<top (required)>'         from c:/RailsInstaller/Sites/UltraDedup002/config.ru:4:in `require'         from c:/RailsInstaller/Sites/UltraDedup002/config.ru:4:in `block in <main>'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:51:in `instance_eval'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:51:in `initialize'         from c:/RailsInstaller/Sites/UltraDedup002/config.ru:1:in `new'         from c:/RailsInstaller/Sites/UltraDedup002/config.ru:1:in `<main>'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:40:in `eval'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/builder.rb:40:in `parse_file'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/server.rb:200:in `app'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands/server.rb:46:in `app'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/server.rb:301:in `wrapped_app'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/server.rb:252:in `start'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands/server.rb:70:in `start'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:54:in `block in <top (required)>'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:49:in `tap'         from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:49:in `<top (required)>'         from script/rails:6:in `require'         from script/rails:6:in `<main>'

c:\RailsInstaller\Sites\UltraDedup002>rails -v Rails 3.1.1

This is a huge guess. But didn't ActiveSupport change some of the methods for finding records; so you could be getting an Arrayk where you usecd to expect a single String?

Greg,

Tuesday, December 20, 2011, 10:52:43 AM, you wrote:

C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:in`method_missing' fromc:/RailsInstaller/Sites/UltraDedup002/config/environment.rb:6:in `<top(required)>' from c:/RailsInstaller/Sites/UltraDedup002/config.ru:4:in`require'

Maybe something in environment.rb then?

C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:in`method_missing’

  fromc:/RailsInstaller/Sites/UltraDedup002/config/environment.rb:6:in

<top(required)>' from c:/RailsInstaller/Sites/UltraDedup002/config.ru:4:inrequire’

Maybe something in environment.rb then?

Hi Ralph,

I agree with Greg, there is something in your environment.rb, the stack trace points to line#6.

Can you post your environment.rb here?

This could be something to do with plugins also, i.e. if you are still using any plugins which aren’t Rails 3 compatible.

Chirag http://sumeruonrails.com

http://blog.sumeruonrails.com