On Apr 12, 2005 1:04 PM, Joe Van Dyk
<joevandyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have an Image model and controller. I have code that draws stuff on
> the image, resizes the image, etc.
What does the application actually do though? That''s key here. The
model should have *all* the business logic of the application
contained within it. So you can do things like:
* completely revamp the interaction model and keep your business logic.
* Script the application from shell scripts
* etc.
> Should that code go in the model or the controller? And Why?
While I''m probably in the minority here, in my view controllers are
throwaway. They correspond to how you access your objects at present.
But that may change.
> Thanks,
> Joe
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Cheers
Koz