Displaying 1 result from an estimated 1 matches for "recipr".
Did you mean:
recipe
2006 Aug 09
2
has_many through delete issue
...iveRecord::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 manually add data to the underlying tables, I can correctly
display the data through by navigating through the object model.
What I''m having trouble figuring out is how to delete Price records form
the association table.
Within one of my forms I...