Forum: Ruby on Rails Adding the 'many' records

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Doug (Guest)
on 2006-01-22 23:23
Hi All

Apologies for being so utterly helpless with Rails but I was wondering
if I could trouble you all with another question?

Lets say I have the following tables/relationships:

"course" -< "races"
"race" -< "results"
"horse" -- "result"

What I have so far is the ability to add a race and when adding it I can
select from the drop down box one of the courses.

What I want to be able to do then is have that race saved but then
continue to add the horses for that race.

So: I add a race record and I then want to add the important horses in
that race.

I've looked for a tutorial that does the same thing but haven't found
one.  I wouldn't know where to start with something like this so would
be grateful for some input.

If it helps at all I've got a link to a screencap of the current PHP
implementation here:
This topic is locked and can not be replied to.