belongs_to :type, :class_name => "ItemType"

Hi Rasmus,

I ran into a similar thing - I found I needed to specify what the
foreign key for ItemType was in the Item table.

In my instance

class Assessment < ActiveRecord::Base
  belongs_to :created_by, :class_name => "User"

wouldn't work but below worked fine:

class Assessment < ActiveRecord::Base
  belongs_to :created_by, :class_name => "User", :foreign_key =>
"created_by"

Hope it helps!

Michael.