Cannot list within associatiion: uninitialized constant

Testing ferret w a simple model, I don’t understand what happen…

class Domain < ActiveRecord::Base
has_many :categories
end

class Category < ActiveRecord::Base
has_many :notices
belongs_to :domain
end

class Notice < ActiveRecord::Base
belongs_to :category
acts_as_ferret :fields => [ :name, :description, :requirements ]
end

I created the DB and tables …

ActiveRecord::Schema.define(:version => 3) do

create_table “domains”, :force => true do |t|
t.string “name”
t.datetime “created_at”
t.datetime “updated_at”
end

create_table “categories”, :force => true do |t|
t.string “name”
t.integer “code”
t.integer “domain_id”
t.datetime “created_at”
t.datetime “updated_at”
end

create_table “notices”, :force => true do |t|
t.integer “category_id”
t.string “name”
t.text “requirements”
t.text “description”
t.datetime “created_at”
t.datetime “updated_at”
end

end

but

Domain.find(:all)
=> []

Category.find(:all)
=> []

Notice.find(:all)
NameError: uninitialized constant Notice

if I take out the acts_as_ferret in my Notice model
#acts_as_ferret :fields => [ :name, :description, :requirements ]

Domain.find(:all)
=> []
Category.find(:all)
=> []

Notice.find(:all)
=> []

what’s the problem with acts_as_ferret ? am I missing any additional
parameter ?

thanks for your lights !