2008/11/21 Bill Mcguire <[EMAIL PROTECTED]>

> Is there a way to increment @race.leg so I don't have to write
> @race.leg1 [EMAIL PROTECTED]  ?
>

Can you change the database structure? I think it would make more sense to
have a "legs" table in this case. Then you could lookup all legs of a given
race and iterate through them with @legs.each

So long
Lennart Koopmann

--~--~---------~--~----~------------~-------~--~----~
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