I have a join table: sitedata belongs_to :tb1 belongs_to tb2
has_many :tb3 When I add a relationship in the join table I then add data to the tb3 table and that populates the FK in tb3 with the id of the join table. no problems there. when I delete the row in the join table the data stays in the tb3 table. how do I get the tb3 data to delete? Is not has_many supposed to delete the data on the other end when the primary table no longer has a reference? If I go into the DB and make the FK a constraint with a delete on cascade it works when the data in the join table is deleted. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

