On Tuesday, February 22, 2011, Serkan Temizel wrote: > I need to send notification e-mails to users. These notifiers are about > what other users do. (Like Facebook's comment notification mails.) > > Which one do you think is best practice, send mail from Controller or Model > ?
Fat model and skinny controller: http://www.google.com/search?q=fat+model+skinny+controller I'm sure others will have a better reading resource for you. So make a "notification" model that handles notifications. If you need to, you can add other types of notifications later. Don't do this kind of stuff directly in the controller.
