On p. 299 of the current Rails book it says that "Active Record takes
care of saving all the dependent child rows when you save a parent
row."  So, when I add a row to the table that has "belongs_to" in its
model, shouldn't the table with the "has_many" be updated with data
from the foreign key?  If not, how do I save data from a form into
more than one table? (And, maybe unfairly expanding into a second
question, how could I put fields from multiple tables on a web page so
that when it is filled out the values will go into various tables?)
In both of these forms of questions I'm trying to get an answer to how
data that will go into multiple tables can come from one web page.  I
hope my statement of the problem isn't too confusing.
        Thanks,
            Barney

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