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
http://ruby-doc.org/core
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---