I want to call the mailer from inside my model, but it gives me this error: uninitialized constant User::PasswordResetMailer So I'm assuming that I have to include it somehow, but I'm not sure how to do this. I've tried searching Google but I'm not getting any helpful results.
on 2010-12-30 01:22
on 2010-12-30 04:09
On Wed, Dec 29, 2010 at 6:21 PM, Mike C <snibble@gmail.com> wrote: > I want to call the mailer from inside my model, but it gives me this > error: > > uninitialized constant User::PasswordResetMailer > > So I'm assuming that I have to include it somehow, but I'm not sure > how to do this. I've tried searching Google but I'm not getting any > helpful results. > It would help if you post the pertinent area of your model.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.