Note that Rails has a subtle way of stating the framework's position on this: mailers are (by default) generated in app/models. Just sayin'.
--Matt Jones On Aug 7, 9:46 am, tomrossi7 <[email protected]> wrote: > Now you can see why I posted this for discussion. Two voices in my > head (1) put it in the model and use dumb controllers (2) emails are > related to user interaction logic and belong in the controller. > > On Aug 7, 9:42 am, Robby Russell <[email protected]> wrote: > > > > > In almost every case that I've crossed this bridge, I've moved this > > logic down into models. I > > > On Thu, Aug 6, 2009 at 7:43 AM, TomRossi7<[email protected]> wrote: > > > > Should models call action mailers, or should those calls always > > > originate from controllers? For example, should user.forgot_password > > > send the email, or should the user_controller.forgot_password? > > > > Just looking for some opinions... > > > > Thanks, > > > Tom > > > -- > > Robby Russell > > Chief Evangelist, Partner > > > PLANET ARGON, LLC > > design // development // hosting w/Ruby on Rails > > >http://planetargon.com/http://robbyonrails.com/http://twitter.com/pla... > > aim: planetargon > > > +1 503 445 2457 > > +1 877 55 ARGON [toll free] > > +1 815 642 4068 [fax] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

