# Rails Cannot See User\_Notifier's methods!

**URL:** <https://www.ruby-forum.com/t/rails-cannot-see-user-notifiers-methods/181839>\
**Category:** Rails\
**Created:** [January 19, 2010, 3:51am UTC](https://www.ruby-forum.com/t/rails-cannot-see-user-notifiers-methods/181839 "2010-01-19T03:51:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrgoodner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/53a042/32.png) [@jrgoodner](https://www.ruby-forum.com/u/jrgoodner)\
**Post date:** [January 19, 2010, 3:51am UTC](https://www.ruby-forum.com/t/rails-cannot-see-user-notifiers-methods/181839/1 "2010-01-19T03:51:49Z")

</div>

Hey there, I’m attempting to set up a User\_notifier that sends the  
user an email with a reset password (a la RESTful Authentication’s  
plugin–which I’m using). I get the following error any time I call  
UserNotifier.deliver\_\<method\_name\>. I.e. in this case, when calling  
UserNotifier.deliver\_reset\_password(user). Here’s the stack trace  
from console:

> > UserNotifier.deliver\_reset\_password(User.find(1))  
> > NoMethodError: undefined method `reset_password' for #<UserNotifier: 0xb6e12178> from /usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/ base.rb:462:in` **send** ’  
> > from /usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action\_mailer/  
> > base.rb:462:in `create!' from /usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/ base.rb:455:in`initialize’  
> > from /usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action\_mailer/  
> > base.rb:392:in `new' from /usr/lib/ruby/gems/1.8/gems/actionmailer-2.2.2/lib/action_mailer/ base.rb:392:in`method\_missing’  
> > from (irb):2

This is driving me crazy, because I can certainly see a method within  
user\_notifier.rb called ‘reset\_password.’ If anybody has any thoughts  
at all, they’re EXTREMELY appreciated! been bangin my head against  
the wall for quite a while.

Thanks for lookin,  
Jared

---

<div class="post-metadata">

**Author:** ![jrgoodner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/53a042/32.png) [@jrgoodner](https://www.ruby-forum.com/u/jrgoodner)\
**Post date:** [January 19, 2010, 4:32am UTC](https://www.ruby-forum.com/t/rails-cannot-see-user-notifiers-methods/181839/2 "2010-01-19T04:32:20Z")

</div>

Hi Jared,

I certainly hate to plug my own tutorials, but you should visit this one  
and create the mailbag app I placed in the tutorial. By the time you  
finish with it, you’ll understand everything you need to know to get  
mailers working and also on how to utilize observers to send mail.

[http://www.ruby-forum.com/topic/202316](http://www.ruby-forum.com/topic/202316)

If you have questions after, holler.

---

<div class="post-metadata">

**Author:** ![jrgoodner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/53a042/32.png) [@jrgoodner](https://www.ruby-forum.com/u/jrgoodner)\
**Post date:** [January 19, 2010, 1:55pm UTC](https://www.ruby-forum.com/t/rails-cannot-see-user-notifiers-methods/181839/3 "2010-01-19T13:55:54Z")

</div>

On Jan 19, 2:50Â am, jrgoodner [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> This is driving me crazy, because I can certainly see a method within  
> user\_notifier.rb called ‘reset\_password.’ Â If anybody has any thoughts  
> at all, they’re EXTREMELY appreciated! Â been bangin my head against  
> the wall for quite a while.

Did you create a class method rather than an instance method ?

Fred
