Well, there are a few approaches you could take to do this. 1. Controller actions defining a logical "function" Make the process of inserting all the records, externally, as a controller action. Allowing you to do them sequentially.
2. Use ActiveRecord hooks Take a look at the hooks like #after_save, #before_save, etc. On Oct 1, 10:03 pm, Me <[EMAIL PROTECTED]> wrote: > If I have a shelf table, card table and port table how do I go about > inserting data into each table relating one to another? > > Insert name of the shelf and # of cards the shelf has, and the name of > each card and other data, and how many ports on each card? > > Shelf has many cards. > Card has many ports. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

