search for: exchangeproposals

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

Did you mean: exchangeproposal
2008 Jul 29
0
cannot destroy child records
Hi, i am lost here, i have these models: class Shift < ActiveRecord::Base has_many :transactions,:dependent => :destroy has_one :exchangeproposal class Transaction < ActiveRecord::Base belongs_to :shift has_many :exchangeproposals class Exchangeproposal < ActiveRecord::Base belongs_to :shift belongs_to :transaction with these models i can''t destroy an exchangeproposal object e=Exchangeproposal.find(100).destroy => #<Transaction id: 7, shift_id: 14591, group_id: 47, user_from_id: nil, user_to_id: nil,...