Displaying 1 result from an estimated 1 matches for "istituto_id".
Did you mean:
institute_id
2006 Jul 05
0
Association and legacy database
...#39;'Sede'', ''Sedi''
inflect.irregular ''sede'', ''sedi''
end
my models are:
istituto.rb
class Istituto < ActiveRecord::Base
has_many :sedi
end
sede.rb
class Sede < ActiveRecord::Base
set_primary_key "istituto_id"
belongs_to :istituti
end
now if I run ./script/console and execute Istituto.find :all, my query is
SELECT * FROM istituti and does not do the join with sedi
I think I have not understood well the whole mechanism, please shed some light
thanks! :)
ciao,
Marco
--
,= ,-_-. =. --...