Sorry I didn't add the patients in there, but I would need the three tables. 
What I'm after is how to represent this data in a form. There is a ton of 
info out there about associations, but not much related to using the data in 
a join table like the appointment_date field. It seems like the physician 
form and the patient form would be very similar and both are needed, storing 
the appointment_date in the join table so both can use.

If you use a fields_for to list out the appointments using :appointments, 
how do you reference to the patient name? The patient name doesn't need to 
be editable, but the only field I can access is user_id from the 
appointments table and not name from the patients table. Hope that makes 
better sense.  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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to