I’m using Dr Nic’s composite keys gems.
I’m connected to an Oracle database. So far, so good.
I set up my models as such :
class Dossier < ActiveRecord::Base
set_table_name :dc_dossier
set_primary_key :n_dossier
has_many :dossier_personnes
end
class Dossier_Personne < ActiveRecord::Base
set_table_name :dc_dossier_personne
set_primary_keys :n_dossier, :n_personne
belongs_to :dossier, :foreign_key => :n_dossier
end
And tried that :
Dossier.find(:first).dossier_personnes
Got this error :
uninitialized constant Dossier::DossierPersonne (NameError)
I’m quite new to ruby, is there something that i’m doing wrong ?
Thanks in advance for your help.