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 2006-06-09 17:36
on 2006-06-09 19:01
On 6/9/06, Joe Van Dyk <email@example.com> wrote: > http://lists.rubyonrails.org/mailman/listinfo/rails > A good old ActionMailer class. A good name for it would be SystemNotifier.
on 2006-06-09 19:37
I just set up something like this yesterday. The RoR wiki has some great examples of how to set up your mailer.
on 2006-06-09 20:04
I think the valid? function is your answer. http://api.rubyonrails.com/classes/ActiveRecord/Va... Roland