Displaying 1 result from an estimated 1 matches for "localdetail".
Did you mean:
localdetails
2006 Jun 09
0
has_many / : through / check_box - update problems
...been making me tear my hair out for 2
days now ?
I have the following classes using has_many :through relationships...
(I''ve changed the class names to make it easier to understand, so don''t
beat me up about naming conventions ;) )
class Movie < ActiveRecord::Base
has_many :localdetails
has_many :territories, :through=>:rights
end
class Territory < ActiveRecord::Base
has_many :localdetails
has_many :movies, :through=>:rights
end
class LocalDetail < ActiveRecord::Base
belongs_to :movie
belongs_to :territory
end
The tables contain the usual *_id fields, and all...