class Patient < AR::Base
  has_many :aaas
  has_many :bbbs ,:through=>:aaas
end
class Aaa < AR::Base
  has_many :bbbs
end
-------
i want like this
@patient=Patient.find(id)
@[email protected]

now the
@new_patient should have their own copy of patient,aaas,bbbs (new
records in corresponding tables)


there is one options is that
we can create seperate object for each patient,aaas(Array),bbbs(Array)
and save them, but if the associations(aaas,bbbs) size(Array.size) are
more then it will take too much time

i know RAILS framework don't have any support for this

any short ideas or ready mate plugins ?
-- 
Posted via http://www.ruby-forum.com/.

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