Hi, Say I want to send an email to someone every time a validation fails in any model. What would be the best way of doing that? Thanks, Joe
On 6/9/06, Joe Van Dyk <joevandyk@gmail.com> wrote:> Hi, > > Say I want to send an email to someone every time a validation fails > in any model. What would be the best way of doing that? > > Thanks, > Joe > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >A good old ActionMailer class. A good name for it would be SystemNotifier. -- -Alder
I just set up something like this yesterday. The RoR wiki has some great examples of how to set up your mailer. Alder Green wrote:> On 6/9/06, Joe Van Dyk <joevandyk@gmail.com> wrote: >> Hi, >> >> Say I want to send an email to someone every time a validation fails >> in any model. What would be the best way of doing that? >> >> Thanks, >> Joe >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > A good old ActionMailer class. A good name for it would be > SystemNotifier. >