RE: Should controllers be "smart"?


#1

Noooo!

Model-View-Controller architecture wants you to put your business logic
into the controller.

Chris


#2

One of the things that DHH always talks about is having a rich domain
model. This is why we have stuff like validations, associations, etc
all being inside the model.

I’ve actually never really understood the point of the controller.
Everywhere I’ve read says that the business logic goes in the model,
and the controller just connects it to the view. Maybe I’m just
confused.

If business logic goes in the controller, how are you supposed to
modify the application other than by using a web interface?

Pat