I was wondering if it was possible to save a given object that has
associations embedded within it.
For example if you have book = {:id=>4,:title=>“hi
there”,:pages=>[{:id=>4},{:id=>6}]}, then you could do some thing like
new=Book.new(book)
new.save
and then it would also do a join and save those books as well.
OR
can you do something like
book=Book.find(:first,:include=>“pages”)
book.pages[1].creator = “Joe Schmo”
book.save
Could you do something like that as well?