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,
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
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
3 matches
Mail list logo