[Rails] Re: Dependant destroy with altered _id name in join table

2011-01-27 Thread Craig Leppan
Beautiful, than-you Just so people can see solution: class Company ActiveRecord::Base has_many :memberships, :dependent = :destroy has_many :notes, :dependent = :destroy has_many :contacts, :through = :memberships has_many :products, :dependent = :destroy has_many :allocations,

[Rails] Re: Dependant destroy with altered _id name in join table

2011-01-26 Thread djangst
Maybe you need to set the :foreign_key option on your association to some_other_id... On Jan 26, 11:03 am, Craig Leppan li...@ruby-forum.com wrote: I have a Dependant destroy and it wont work as its reference is not standard . -- You received this message because you are subscribed to the

Re: [Rails] Re: Dependant destroy with altered _id name in join table

2011-01-26 Thread shiva s
Sir, This Shiva,I'm a web designer I would like to know about the Ruby on rails and would like to learn more bout it,can you explain bout it??need to know the advantages of this concept -- Thanks and Regards, Shiva Business Development Team, 3 DOT VENTURE