views:

223

answers:

2

I'm not quite sure how to go about diagnosing this issue, after switching my app to Ruby 1.9.1 I'm getting this error:

TypeError
wrong argument type Mysql (expected Struct)

And it seems the app fails to boot, so I'm not really sure of how to even begin solving this issue. I've made sure all my gems are up to date and they are.

I'm using RVM, ruby 1.9.1, and Rails 3 (beta3), I don't have this problem when running ruby 1.8.7.

Thoughts?

A: 

A backtrace can help you to track a place of wrong type assignment. You can try to get some with running any rake task with '-t' option.

rake test -t
rake db:migrate -t

or maybe just running "script/console" will show you some.

PS: you can list available rake tasks with "rake -T" command

zed_0xff
+1  A: 

Use ruby 1.9.2-head.

I've never been able to get any of the Rails 3 betas to work on 1.9.1.

Eric Saxby