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:inblock 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:inupdated_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:ininitialize_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:incall’
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:inblock 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:inrun_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:ininstance_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:inblock 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:inrun_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:inmethod_missing’
from
c:/RailsInstaller/Sites/UltraDedup002/config/environment.rb:6:in <top (required)>' from c:/RailsInstaller/Sites/UltraDedup002/config.ru:4:inrequire’
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:ininstance_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:innew’
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:ineval’
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:inapp’
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:inwrapped_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:instart’
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:intap’
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:inrequire’
from script/rails:6:in `’

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

On Tue, Dec 20, 2011 at 12:49 PM, Ralph S. [email protected]
wrote:

can’t convert Array into String

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 A.
http://twitter.com/akinsgre

Greg,

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

GA> On Tue, Dec 20, 2011 at 12:49 PM, Ralph S.
[email protected] wrote:

can’t convert Array into String

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

Thanks for the guess.

As far as I know, my code does nothing with databases.

That’s my code. Who knows what Rails is doing.

Ralph

C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:inmethod_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?

On Tue, Dec 20, 2011 at 1:15 PM, Ralph S. [email protected]
wrote:

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Greg A.
http://twitter.com/akinsgre

On Tue, Dec 20, 2011 at 11:57 PM, Greg A. [email protected]
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: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