Forum: Ruby on Rails Adding the 'many' records

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
32ba8c5c148da2653028dc7f8066b810?d=identicon&s=25 Doug (Guest)
on 2006-01-22 22: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: http://www.straw-dogs.co.uk/explanation.gif
This topic is locked and can not be replied to.