Topic: best practice for a model to create another model

I have a model A which has many of another model B. Whenever something a record is being created in model A I want a record of B to be created. Is it good practice for a method in model A to call the Create method of the model B or is there a good practice to do this?

Re: best practice for a model to create another model

I have done this as part of a status model where something happens on model A and it calls the status.new(params), not sure its the best way but it works.

http://www.DumpServer.co.uk Customizable RSS Aggregation