search for: price_cod

Displaying 1 result from an estimated 1 matches for "price_cod".

Did you mean: price_code
2006 Aug 09
2
has_many through delete issue
I have the following many-to-many relationships defined in my model code to model a many to many relationship between Media and PriceCode with Price being the association table: class Media < ActiveRecord::Base has_many :prices has_many :price_codes, :through => :prices end class Price < ActiveRecord::Base belongs_to :media belongs_to :price_code end class PriceCode < ActiveRecord::Base has_many :prices has_many :medias, :through => :prices end Based this exmaple off a recipr in the Rails Recipies Cookbook. When I manuall...