Re: Design Question : model needs in model or view

2007-11-07 Thread John M
Wow, that was quick, 3min response! Thanks. Yea, thats what I was thinking. Trying to be very DRY. John On Nov 7, 10:44 am, Kyle Fox <[EMAIL PROTECTED]> wrote: > I'd probably put it in the model. > > Putting it in the view means if you ever create an instance of that > model elsewhere,

Re: Design Question : model needs in model or view

2007-11-07 Thread Kyle Fox
I'd probably put it in the model. Putting it in the view means if you ever create an instance of that model elsewhere, you'll need to duplicate the code for creating the related model. Not very DRY :) --~--~-~--~~~---~--~~ You received this message because you

Design Question : model needs in model or view

2007-11-07 Thread John M
I have a model that has a 1-1 model attached to it. This attached model has mostly default values that will be referenced later. My question is, should I put the creation of the 1-1 model in the SAVE() method of the main object, or in the view where it's created? seems like putting it in the