Displaying 1 result from an estimated 1 matches for "endroits_connu".
Did you mean:
endroits_connus
2006 May 01
0
Having trouble adding rows to an association
hi everybody, when trying to add rows to a join table i get the
following error :
sequence doesn''t exist
here are the models used
class Photo < ActiveRecord::Base
has_many :endroits_photos,
:dependent => true
has_many :endroits_connus,
:through => :endroits_photos
end
class EndroitsPhoto < ActiveRecord::Base
belongs_to :photo
belongs_to :endroits_connu
end
class EndroitsConnu < ActiveRecord::Base
has_many :endroits_photos,
:dependent => true,
:foreign_key => "endroit...