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,
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
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
3 matches
Mail list logo