Database design problem

Hi, please read my post at http://railsforum.com/viewtopic.php?pid=60321#p60321

I've been stuck on this problem for weeks now and nobody has been able to help me! I would be very grateful to whoever can solve this problem! Thanks

Evan wrote:

Hi, please read my post at http://railsforum.com/viewtopic.php?pid=60321#p60321

I've been stuck on this problem for weeks now and nobody has been able to help me! I would be very grateful to whoever can solve this problem! Thanks

Your teacher has_many meetings... and you have several options...

teacher.meetings.each do |m|   # you have all your meeting fields available here, as m.this or m.that end

or for meeting in teacher.meetings   # likewise with meeting.this or meeting.that end

Iterating across the meetings lends itself easily to rendering TRs, and the fields you want to display would be the TDs

http://api.rubyonrails.org is your friend, as is RDoc Documentation