Displaying 1 result from an estimated 1 matches for "account_pati".
Did you mean:
account_path
2006 Jul 03
4
Display find(:include => [:children]) results in a view
..., :include
=> [:patient_details])
How can I address the patient_details to display them in the view? The
console even shows a @patient_details instance variable being created...
Any ideas?
===================================
Models:
class Account < ActiveRecord::Base
has_many :account_patients
has_many :patients,
:through => :account_patients
end
class AccountPatient < ActiveRecord::Base
belongs_to :account
belongs_to :patient
belongs_to :patient_detail
end
class Patient < ActiveRecord::Base
has_many :account_patients
has_many :accounts,
:through => :account...