I have rails 3.1, I'm trying to fill in the data seeds.rb I have a Country model that wraps to the country table
But it seems that the rails cannot see the country model from seeds.rb I get this error:
rake aborted! uninitialized constant Object::Country Tasks: TOP => db:seed
My seeds.rb file looks like this:
my country model:
class Country < ActiveRecord::Base has_many :students has_many :instructors end
any idea please?
EDIT
I am in a development environment, config.threadsafe!
simo
source share