Ruby on Rails
Wednesday, March 2, 2011
has_many :through is needed. In order for appointment_date to be available to both physicians and patients, it should be located in the appointments table.
Using fields_for :appointments is quite simple and I successfully list out the appointments for a physician or patient. Listing out the associated patient name or physician name is where I'm asking for help. I can list out the physician_id or the patient_id from the appointments table, but not their name.
Thanks
-- Thanks
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment