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